The fighting is over at a major foreign guesthouse complex used by Westerners in Kabul and all attackers have been killed, a spokesman for the US-led NATO mission in Afghanistan said on Wednesday.
"Afghan security forces have killed all the attackers and it is over," said Lieutenant Colonel Jimmie Cummings, a spokesman for NATO's International Security Assistance Force.
A spokesman for the interior ministry said at least six people were killed in the attack -- which began with a suicide car bombing shortly after dawn.
He said the target was the well-known and heavily protected "Green Village" used by international organisations, including the European Union and the United Nations.
ISAF said no ISAF personnel were killed in the attack, which was claimed by the Taliban, the militia leading a 10-year insurgency against foreign troops and the Kabul government.
"Another attack by the insurgency that resulted in the deaths of innocent Afghan civilians, with most of that being children from a nearby school," said ISAF spokesman General Carsten Jacobson.
The militants struck shortly after US President Barack Obama left Kabul after an overnight visit, and a Taliban spokesman claimed the attack was a "message to Obama that he and his forces are never welcomed in Afghanistan".