Gunmen targeted Shia pilgrims in Kabul late on Tuesday, killing at least 14 people as they gathered to celebrate Ashura, one of the most important festivals on the Shia calendar, officials said.
Some 36 people were wounded and at least one attacker killed, interior ministry spokesman Sediq Sediqqi said, adding that the assault was over.
Special forces had briefly entered the Karte Sakhi shrine near Kabul University to see if any more gunmen were sheltering inside, with police evacuating people from the area, officials said.
Of the 14 killed, 13 were civilians and one a police officer. Three police were among the wounded, Seddiqi said.
"A number of attackers have targeted people in Karte Sakhi shrine," said Kabul Police chief Abdul Rahman Rahimi.
"Police have evacuated dozens of people from the shrine. A number of civilians and police have been injured."
Police also said two grenades had been detonated during the attack.
No group has yet claimed responsibility for the assault, which President Ashraf Ghani condemned as a "clear sign of a crime against humanity".
Ghani vowed the government would use its "maximum capacity" to provide security during Ashura, which will be celebrated on Wednesday, and called on all Afghanistan's sects to "stand firmly against" the country's enemies.
The threat of attack targeting Shias was considered particularly serious during Ashura, and many foreign embassies had restricted staff movements until the end of the week in Kabul.
Tuesday's attack came as Afghanistan deployed hundreds of commandos backed by Nato air strikes in Lashkar Gah to drive Taliban insurgents from the southern city after their latest attempt to seize the capital of Helmand province.
The wave of violence underscored unravelling security in Afghanistan as the resurgent Taliban continue a push into urban centres 15 years after they were toppled from power by the US invasion.
Related Story