contestada

Following up on my interest in the Knights of Malta, I got to reading about their part in the Cretan War which went on from 1645 to 1669. This led me to the siege of Candia. This started in 1648 and the Venetians and their allies (including the Knights of Malta) were holding well.
But in 1667, according to Wikipedia, Colonel Andrea Barozzi, who was a Venetian military engineer, went over to the Ottomans and gave them some useful information on how to attack the Candia fortifications.
I'm wondering why he did this, if he was bribed or if he offered the information in exchange for money or position or something, or maybe he just decided to join the side he thought was winning.
I did some searching but couldn't find anything more than the information in the Wikipedia article, except the koules page but even this doesn't say why he betrayed his own side or what reward he got.
One other thing I found was a Wikipedia page on the Barozzi family. Maybe it's his family but he's not mentioned there.
(There's no Crete tag so I just used other relevant ones)