The massacre of 16 villagers by a US soldier has triggered angry calls for an immediate American exit from Afghanistan as Washington tries to negotiate a long-term presence to keep the country from sliding into chaos again.
Just days before yesterday's attack, Kabul and Washington had made significant progress in negotiations on a Strategic Partnership Agreement that would allow American advisers and special forces to stay in Afghanistan after foreign combat troops leave at the end of 2014.
But securing a full deal may be far more difficult now after the shooting spree in villages in the southern province of Kandahar, the Taliban heartland, which killed mostly women and children.
"This could delay the signing of the Strategic Partnership Agreement," an Afghan government official told Reuters.
The attack, the latest American public relations disaster in Afghanistan, may be a turning point for the United States in a costly and unpopular war now in its eleventh year.
Afghanistan's parliament condemned the killings, saying Afghans had run out of patience with the actions of foreign forces and the lack of oversight.
Popular fury over the killing spree, which brought demands that the United States withdraw earlier than scheduled, could be exploited by the Taliban to gain new recruits.
"We have benefited little from the foreign troops here but lost everything - our lives, dignity and our country to them," said Haji Najiq," a Kandahar shop owner.
"The explanation or apologies will not bring back the dead. It is better for them to leave us alone and let us live in peace."
Anti-Americanism, which boiled over after copies of the Muslim holy book, the Koran, were inadvertently burned at a Nato base last month is likely to deepen after the Kandahar carnage.
"The Americans said they will leave in 2014. They should leave now so we can live in peace," said Mohammad Fahim, 19, a university student. "Even if the Taliban return to power our elders can work things out with them. The Americans are disrespectful."
The civilian deaths may also force Afghan President Hamid Karzai to harden his stand in the partnership talks to appease a public already critical of his government's performance.
The partnership agreement, which Washington and Kabul have been discussing for more than a year, will be the framework for US involvement in Afghanistan after foreign combat troops leave at the end of 2014.
Without a pact that keeps US advisors or special forces here, there is a danger that civil war could erupt again in Afghanistan because ill-trained Afghan forces would be unable to keep insurgents at bay.
The Kandahar violence came just days after the United States and Afghanistan signed a deal on the gradual transfer of a major US-run detention centre to Afghan authorities, overcoming one of the main sticking points in the partnership negotiations.
"The Americans are not here to assist us they are here to kill us," said Najibullah, 33, a house painter in Kabul.
"I hate the Americans and I hate anyone who loves them, so I hope there is no long-term partnership between our countries."
Afghanistan wants a timeline to take over detention centres and for the United States and Nato to agree to end night raids on Afghan homes as preconditions for signing the pact.
Civilian deaths are one of the main sources of tension between Kabul and Washington.
US officials warned of possible reprisal attacks after the villagers were killed in the likely "rogue" shooting.
Washington has rushed to distance the shootings from the efforts of the 90,000-strong US force but faces growing criticism at home and abroad about its conduct of the war.
"The US Embassy in Kabul alerts US citizens in Afghanistan that as a result of a tragic shooting incident in Kandahar province involving a US service member, there is a risk of anti-American feelings and protests in coming days, especially in the eastern and southern provinces," the embassy said in an emergency statement on its website.