Readers of Dawn newspaper, commenting online, were in no doubt how the Pakistani government should respond to Saturday's killing by US forces of 24 soldiers on Pakistan's side of the Afghan border. "Pakistan should acquire anti-aircraft defence systems ... so that in the future Pakistan can give Nato forces a proper reply," said Ali. "This is outrageous," wrote another reader, Zia Khan. "We should cut off all ties with the US. As long as we are getting US [anti-terror] aid ... Pakistan will be attacked in such a manner. They can never be trusted." Another, Obaid, turned his wrath on the Pakistani authorities: "Our self-centred establishment with their fickle loyalties can't even demand that the killers be tried in a neutral court ... What is the ability of our armed forces? If they can't repel or intercept an attack of this intensity, then what's their purpose? This is not a time to get mad. It's time to get even."

The fury of these respondents comes as no surprise, but Washington should treat it with deadly seriousness all the same, for this latest outrage is another fateful signpost on the road to a potential security and geostrategic disaster that may ultimately make Afghanistan look like a sideshow.

The 10-year-old Afghan war, neither wholly won nor lost, is slowly drawing to a close – or so Washington postulates. But what has not stopped is the linked, escalating destabilisation of the infinitely more important, more populous, and nuclear-armed Pakistan. If Washington does not quickly learn to tread more carefully, it may find the first US-Pakistan war is beginning just as the fourth Afghan war supposedly ends.

Anti-American feeling in Pakistan is becoming institutionalised at the higher levels of government, while opposition figures such as Imran Khan see their popularity rise on the back of diatribes aimed at Washington. Pakistan's western-educated, secular political elite is under brutal attack from Islamist militants who revile them as Washington's stooges. The knock-kneed government is mocked and despised for failing to stand up to its infidel paymasters even as Pakistan's own "war on terror" death toll rises into the tens of thousands.

Since 2001, when the Bush administration bluntly told Islamabad it must take sides, be either "for us or agin us" in the newly declared "war on terror", Pakistan has struggled under a plethora of imperious American demands, démarches and impositions that are at once politically indefensible and contrary to the perceived national interest.

The last year has been another humiliating one at the hands of the country's principal ally. Pakistanis have looked on impotently as US special forces flouted its sovereignty and killed Osama bin Laden under the army's nose; as the US stepped up drone terror attacks in Pakistani territory despite repeated protests; and as people-pleasing US senators and Republican presidential candidates have taken to picking on Pakistan and its aid bill in uninformed foreign policy rants.

Hillary Clinton and the Pentagon top brass have responded to Saturday's killing with the usual expressions of regret and of determination to "investigate", without formally admitting responsibility. Their pronouncements are worthless, transparently so.

The belief that weak, impoverished, divided Pakistan has no alternative but to slavishly obey its master's voice could turn out to be one of the seminal strategic miscalculations of the 21st century. Alternative alliances with China or Russia aside, Muslim Pakistan, if bullied and scorned for long enough by its western mentors, could yet morph through external trauma and internal collapse into quite a different animal. The future paradigm here is not another well-trained Indonesia or Malaysia. It is the Islamic Republic of Iran.