Kabul University attack: Nineteen dead, more wounded after gunmen storm Afghan campus
The Taliban deny being behind the attack, which saw an hours-long battle with security forces.
A spokesman for the Afghan interior ministry said the attack was eventually stopped when three gunmen were killed.
At least 22 people were wounded, the interior ministry said.
The attack began around the time government officials were expected to arrive at the campus for the opening of an Iranian book fair.
The Taliban denied involvement and condemned the attack. The Islamic State group has targeted education centres in Afghanistan in recent years, including an attack last month an attack outside a tuition centre in Kabul that left 24 people dead. The group also claimed responsibility for a 2018 attack in front of Kabul University in which dozens were killed.
Video footage from the unviersity campus on Monday showed students running away from the site with the sound of gunfire in the background. Some scaled walls in an effort to escape. Interior Ministry spokesman Tariq Arian said one of the attackers detonated explosives.
Violence in Afghanistan has worsened in recent months even as the Taliban conduct peace talks with the government in Doha, Qatar.
Nowhere and no-one seems secure in Afghanistan's terrifying everyday violence. "Books, pens and students are no longer safe," lamented one Afghan journalist on Twitter in response to Monday's attack.
The bloody assault on Kabul University came about a week after a devastating attack on an education centre in the city which killed more than 40 young students. That attack, in a predominantly Shia Muslim neighbourhood of Kabul, was claimed by the Islamic State Group. The Taliban was quick to say the Kabul University raid wasn't its doing, pointing the finger instead at "evil elements" linked to the "Kabul administration".
The Afghan government now regards these despicable attacks on civilians as the work of a seamless web of groups with guns determined to wreak havoc and wreck hope in Afghanistan. Afghans are reeling - from this violence and from the escalating war between security forces and Taliban fighters on front lines across the country.