Just a thought , but I would say Petraeus was on the trail of people in this country collaborating with the terrorist, being CIA he couldn't investigate so he turned it over to the FBI.
He was getting too close to some very important people, and he found out too late he couldn't trust the FBI.