TV footage showed people streaming out of the main gate, some rushing to embrace waiting relatives.
Gunmen broke into a university campus in northwestern Pakistan on Wednesday morning and killed at least 20 people, including students and a professor, police and hospital officials said.
No one has claimed responsibility for the attack.
Some had even said this latest attack was reminiscent of the December 2014 attack on a school in Peshawar, which had killed over 150 people, 144 of them children. AP's earlier story is below.
Pakistan's security forces have ended a bomb and gun attack on a university campus in north-west Pakistan, which has left at least 21 people dead and 60 injured.
There were also reports of two explosions heard from inside the university.
Notably, the university ceremony was recognizing the 28th anniversary of the university's founder, Abdul Ghaffar Khan, a Pashtun independence activist in the 1920's and pacifist also known as Bacha Khan.
"While condemning the cowardly attack of the terrorists, the Prime Minister said that those killing innocent students and citizens have no faith and religion".
Four of the gunmen have been killed by security forces and the army has contained the militants to two blocks inside the university, a spokesman for the army said on twitter.
Vice Chancellor Fazal Rahim told reporters that the university teaches over 3000 students and was hosting an additional 600 visitors on Wednesday for the recital.
BILAWAL ARBAB/EPA Officials gather the bodies of victims to take them off the campus after terrorist gunmen opened fire on students, teachers and security guards at a Pakistan college.
Pakistani Prime Minister Nawaz Sharif is in Switzerland for the World Economic Forum.
Pakistan has escalated counterterrorism operations since 2013, waging campaigns in tribal areas in the country's mountainous northwest that have always been strongholds for the Taliban, al-Qaida and other terrorist groups.
Mansoor, who was the mastermind mind the Peshawar school attack, said a four-man Taliban team carried out the assault in Chasadda.
Four attackers were killed, the army said, amid conflicting reports about whether the Taliban were involved.