What CIA and FBI was doing when 9 / 11 happened ?
Your post tells me the level of sense in your head!!!! You are comparing TWO civilian agencies with the Pakistani MILITARY
!!!! That's not a comparison to begin with.
For your information, since the sad events of 911, our law enforcement agencies have un-foiled and stopped countless plots. Sadly, you only see the one that went through. But in Pakistan's case (pretty sad example), this terrorism drama has been going on since Zia. There were 10-15 years between Zia and US forces stepping foot in Afghanistan, why didn't the Pakistani army fix this mess? In fact, they were supporting these barbaric terrorists as the "strategic depth"!!! And these same people have killed thousands of Pakistani soldiers and civilians since then.
The point is, it is TIME that the Army allowed civilian institutions to be created. 1971, Zia, Rise of Taliban as strategic depth, post 911 and till date, a constant battle with the extremist mentality has resulted in the Army stretched too thin. They can't do EVERYTHING in the country.
The country was built by a civilian movement, not a military coupe!! Its time that the Civilians get their country back and civilian focused institutions are built. If the institutions are allowed to be built, within 10 years, you'll start to produce nationalistic loyal leaders. But so far, the civilian rule gets cut in the middle, everything goes back to 0, and then Marshall law comes in and the cycle repeats. Nothing gets done.
A nation and a successful country is really an integrated system running with ALL parties working together like the Civilians, Military, Judiciary, etc. Its not one party thinking they can have it all.