Tuesday’s bombings, the largest of which targeted a Muslim shrine in the capital Kabul, wiped out any residual optimism from an international conference about the future of Afghanistan, held on Monday in Germany, and refocused attention on the fragile Afghan security situation.

Afghans have previously been spared the large-scale sectarian attacks that regularly trouble Iraq and neighboring Pakistan, but now face the grim prospect of a new type of bloodshed being added to the dangers of daily life.

“The reason for President Karzai’s trip cancellation to Britain is the terrorist attacks on Ashura in Kabul, Mazar-i-Sharif and Kandahar which killed and wounded many participants,” Karzai’s office said in a statement.

The NATO-led International Security Assistance Force (ISAF), responsible for security across much of the country, says it is winning the war against the Taleban.

But if Tuesday’s bombing sets a precedent for sectarian violence, it would severely stretch army and police resources.

At a funeral ceremony on Wednesday for victims of the attack, hundreds of Muslims bore aloft the bodies of the dead, chanting that because they had been killed at a Muslim ceremony, they had died in the name of the Prophet Muhammad.

“We were sacrificed for you,” they shouted.

Some Muslims said immediately after the Kabul blast that police had not done enough to protect them. Hundreds of worshippers had gathered to mark the festival of Ashoura at a shrine in central Kabul when a suicide bomber struck.

Among those killed in Tuesday’s attacks was a US citizen the American embassy in Kabul said in a statement. It gave no further details.

At the German conference, the Afghan government’s Western backers, who have spent billions of dollars on the country since the US-led overthrow of the Taleban government in 2001, pledged to support the country beyond the end-2014 deadline for the withdrawal of foreign combat troops.

Afghanistan has said that it will not be able to afford the army and police force it needs after 2014 without international help, and Tuesday’s attack is likely to reinforce fears about the ability of Afghan forces to cope with violence after ISAF has fully handed over security.