The blast took place at the entrance to the Marshal Fahim Military Academy, a government-run defense university, early on Tuesday.
The Afghan Interior Ministry said the attack had claimed the lives of five people, including both civilians and military personnel.
“This morning at around 7 am, a suicide bomber detonated his explosives… killing five people including two civilians and three military personnel. Twelve were wounded, including five civilians,” said the ministry’s spokesman Nasrat Rahimi.
“It was a big explosion that rocked our house. We also heard gunfire afterwards. Ambulances rushed to the area quickly,” resident Samiullah, who goes by one name, told AFP.
The Kabul police chief confirmed the location, according to a local broadcaster.
No group immediately claimed responsibility for the attack, which comes after nearly three months of relative calm in the Afghan capital.
Recent weeks have brought frequent but small-scale attacks on police and US security forces in Afghanistan, even as the United States and Taliban militants pursue talks to finalize a peace pact. They have been negotiating on and off for a year.
US confirms 2 soldiers killed, 6 injured in AfghanistanThe US military says two American soldiers have been killed and six others wounded in an attack in eastern Afghanistan.
Six people were killed and at least a dozen wounded last year in a Taliban bombing attack outside the Marshal Fahim academy, which is modeled after European war colleges to train Afghan cadets to become officers.
The academy was also the scene of a Daesh assault last May.
The Taliban have refrained from attacking major urban centers in an effort to keep talks with the US on track, but violence continues elsewhere.
The last major attack in the capital was in November 2019, when at least 12 people were killed when a minivan packed with explosives rammed into a vehicle carrying foreigners during Kabul’s morning rush hour.