KABUL: Gunmen stormed Kabul University on Monday as it hosted a book fair attended by the Iranian ambassador to Afghanistan, sparking an hours-long gun battle and leaving at least 25 dead and wounded at the war-torn country's largest school.
The ministry's spokesman, Tariq Arian, would not break down the casualty numbers for the attack at the campus in the Afghan capital, though local media reports were saying there may be as many as 20 killed.
Arian also said there were three attackers involved in the assault, all of whom were killed in the ensuing firefight.
As the sun slowly set over the Afghan capital, there were few details though the Taliban issued a statement denying they took part in the assault.
The attack came as the insurgents are continuing peace talks with the US-backed government.
Those negotiations, taking place in the Gulf Arab state of Qatar, aim to help the U.S. finally withdraw from America's longest war, though daily bloodshed continues and an Islamic State affiliate launches its own attacks on Shiites in the country.
Five hours into the fighting, sporadic grenade explosions and automatic weapons fire echoed down the empty streets surrounding the university's fenced compound.
Afghan troops stood guard.
Earlier, students were fleeing for their lives from the site.
"Unfortunately, there are casualties," Arian said as the assault unfolded, without elaborating.
Ahmad Samim, a university student, told journalists he saw militants armed with pistols and Kalashnikov assault rifles firing at the school, the country's oldest with some 17,000 students.
He said the attack happened at the university's eastern side where its law and journalism faculty teach.
Afghan media reported a book exhibition was being held at the university and attended by a number of dignitaries at the time of the shooting.
While Afghan officials declined to discuss the bookfair, Iran's semiofficial ISNA news agency reported Sunday that Iranian Ambassador Bahador Aminian and cultural attaché Mojtaba Noroozi were scheduled to inaugurate the fair, which would host some 40 Iranian publishers.
Iranian state television reported the attack occurred, but did not offer information on its officials.
Iranian diplomats have been targeted previously by attacks in the country and nearly sparked a war between the two countries.
In 1998, Iran held the Taliban responsible for the deaths of nine Iranian diplomats who were working in its consulate in northern Afghanistan and sent reinforcements to the 950-kilometer- (580-mile-) long border that Iran and Afghanistan share.
No group immediately took responsibility for the ongoing attack though the Taliban issued a statement saying they were not involved.
However, suspicion immediately fell on the Islamic State group.
Last month, the Islamic State group sent a suicide bomber into an education center in the capital's Shiite dominated neighborhood of Dasht-e-Barchi, killing 24 students and injuring more than 100.
The Islamic State affiliate in Afghanistan has declared war on Afghanistan's minority Shiite Muslims and have staged dozens of attacks since emerging in 2014.