Islamabad: A group of militants stormed a university in volatile northwestern Pakistan on Wednesday, killing several innocent people and wounding dozens.

Live updates:

President Pranab Mukherjee has strongly condemned the terrorist attack. "My heartfelt condolences to the bereaved families," he said.

I strongly condemn the terror attack on Bacha Khan University, says RJD chief Lalu Prasad Yadav

Former J&K Chief Minister and NC leader Farooq Abdullah has advised Pakistan to wake up and start friendship with India.

A security official said the death toll could rise to as high as 40 as the Army cleared out student hostels and classrooms.

Prime Minister Narendra Modi condemns Bacha Khan University terror attack and extended condolences to families of the deceased.

Strongly condemn the terror attack at Bacha Khan University in Pakistan. Condolences to families of the deceased. Prayers with the injured. — Narendra Modi (@narendramodi) January 20, 2016

"Our four suicide attackers carried out the attack on Bacha Khan University today," Umar Mansoor, a commander in the Tehreek-e-Taliban Pakistani (TTP) militant group told AFP by phone from an undisclosed location.

Bilawal Bhutto Zardari Chairman Pakistan Peoples Party strongly condemns the terrorist attack on Bacha Khan University.

According to 'AFP', the operation has ended and the death toll in Pakistan university attack stands at 21 as of now. Meanwhile, Army continues to search block by block of the university.

Pakistan Tehreek-e-Insaf chief Imran Khan will visit Charsadda today.

Reports say that Pakistani Army has confirmed that snipers have killed two more terrorists. Four terrorists killed so far.

Deputy Inspector General Saeed Wazir says 70 percent of students have been rescued.

Tehreek-e-Taliban Paksitan claims responsibility for Bacha Khan University terror attack.

Pakistan Nawaz Sharif condemns the terror attack and said the sacrifice of the deceased will not go in vain. “We are determined and resolved in our commitment to wipe out the menace of terrorism from our homeland. The countless sacrifices made by our countrymen will not go in vain,” a statement issued on behalf of the Pakistan PM said.

Pakistan police say they have killed two of the militants who stormed the university.

Pakistan media reports that 60-70 students were shot in the head by terrorists.

Speaking to Reuters, Deputy Inspector General Saeed Wazir said the Army and police had moved into the university and a gunfight with the attackers was under way. He said it was unclear how many gunmen were involved.

One professor is reported to be killed in the attack.

Pakistan media reports that 50 have been injured in the terror attack and have been shifted to Charsadda District HQ hospital

Media reported that three gunmen entered the Bacha Khan University in Charsadda, northwestern Khyber Pakhtunkhwa province, and opened fire on students and teachers in classrooms and hostels.

The Bacha Khan University in Charsadda is about 50 kilometres (30 miles) from the city of Peshawar.

Reports say that firing was still going on inside the campus where students, teachers and administration staff are present.

Television images showed female students clutching hands as they fled the university, with traffic blocked on the roads of Charsadda as security forces rushed towards the campus.

According to some reports two explosions were heard inside the university.

Geo TV reports that five injured have been taken out from the university.

It further said that over 3000 students were present inside the university when the attack happened.

Security officials have cordoned off the area and students are being evacuated from classes.

Peshawar was the location of Pakistan`s deadliest ever extremist attack, when Taliban gunmen stormed an army-run school in December last year and slaughtered more than 150 people, most of them children, in an hours-long siege.