Militants have killed at least 11 soldiers in an attack on an army post in Kabul, the fourth major assault in a surge of violence in just over a week.
Sixteen other soldiers were injured in the raid near the main military academy in the west of the Afghan capital.
Four militants were killed, a defence ministry spokesman told the BBC. A fifth was arrested. Islamic State (IS) militants claimed the assault.
Taliban and IS attacks have soared this month, leaving scores dead.
On Saturday an ambulance packed with explosives killed more than 100 people in the Chicken Street shopping area. The Taliban claimed the attack, the deadliest in months.
Marshal Fahim National Defense University is sometimes referred to as “Sandhurst in the Sand” as it is closely modelled on the British officer training academy.
It has been attacked before. In October 2017, 15 military cadets were killed in an explosion outside it as they were leaving by minibus.
That attack was attributed to the Taliban.