ISLAMABAD, Pakistan — The discovery of Osama bin Laden by American commandos close to the Pakistani capital dealt a devastating blow to the Pakistani military and its intelligence service and set off a fevered round of speculation about how Bin Laden could have been hiding virtually under their noses in a small city that housed military garrisons.