ISLAMABAD, Pakistan — The public assault by the Obama administration on the Pakistani intelligence agency as a facilitator of terrorist attacks in Afghanistan has been met with scorn in Pakistan, a signal that the country has little intention of changing its ways, even perhaps at the price of the crumpled alliance.

In injured tones similar to those used after the Navy Seals raid that killed Osama bin Laden in May, Pakistani officials insisted on Friday that theirs was a sovereign state that could not be pushed by America’s most senior military officials, Adm. Mike Mullen, the chairman of the Joint Chiefs of Staff, and Leon E. Panetta, the secretary of defense.

The two Americans told the Senate Armed Services Committee on Thursday that Pakistan’s spy agency, the Directorate for Inter-Services Intelligence, or ISI, worked hand-in-glove with the Haqqani network, a potent militant outfit sheltering in the Pakistani tribal areas, to subvert American war aims.

Admiral Mullen accused the spy agency of supporting Haqqani militants who attacked the American Embassy in Kabul last week, and he called the Haqqanis a “veritable arm” of the ISI. Mr. Panetta threatened “operational steps” against Pakistan, shorthand for possible American raids against the Haqqani bases in North Waziristan.