The spy chief did the talking. General Kayani attended the session, along with the heads of the air force and the navy, but did not speak, apparently to be spared the humiliation. Senior military officials, considered to be above civilian law and a power unto themselves, rarely appear before Parliament, or even its defense committees.

General Pasha told Parliament he had a “shouting match” with the C.I.A. director, Leon E. Panetta, over C.I.A. activities in Pakistan when they met recently in Washington, several lawmakers who attended the session said.

Reviewing the history of American relations with Pakistan, General Pasha declared that the United States, which has provided Pakistan with about $20 billion in aid over the last decade, had let Pakistan down at every turn since the 1960s, including imposing sanctions on the country in the 1990s.

“And now they have conducted a sting operation on us,” General Pasha said, according to one lawmaker. The intelligence chief was referring to the fact that the Obama administration had decided not to inform Pakistan in advance of the raid because of fears that the Pakistanis could not be trusted.

Before answering questions from the more than 400 members of Parliament from both chambers, the military gave a PowerPoint presentation that included photographs of Qaeda militants captured or killed by the ISI since the attacks of Sept. 11, 2001.

General Pasha then explained that Pakistan should be given credit for dismantling Al Qaeda even before the United States killed Bin Laden, according to the accounts from lawmakers after the session.

In a direct assault on statements by American officials that the ISI supports jihadist militant groups, including the Haqqani network in North Waziristan, General Pasha said there was no such policy. “We have nothing to do with the Haqqani network,” he was quoted as saying.