Gunmen have attacked an army outpost near one of Afghanistan's main military academies, killing 11 soldiers and leaving 15 wounded, the defence ministry said.
The so-called Islamic State militant group claimed responsibility for the attack near the Marshal Fahim military academy in the western outskirts of the capital Kabul.
The attack came two days after an ambulance bomb in the centre of the city killed more than 100 people and just over a week after another attack on the Hotel Intercontinental killed more than 20.
Both of those attacks were claimed by the Taliban.
Ministry of Defence officials said the militants attacked the outpost near the well-defended military academy just before dawn.
Two of the attackers blew themselves up, two were killed in fighting and one was captured, the ministry said in a statement announcing that the fighting was over.
The attack came as the president of Indonesia, Joko Widodo, was due to visit Kabul.
Indonesia has the world's biggest Muslim population and Mr Widodo has proposed that Indonesian Islamic scholars could help promote Afghan peace, media reported recently.