The heavily-armed militants, who arrived on an auto rickshaw, attacked the students' hostel of the Directorate of Agriculture Extension on the University Road in the city, the capital of the restive Khyber-Pakhtunkhwa province.
Both police and military officials said the attackers had been coordinating with handlers based in Afghanistan.
Pakistan media Geo news reported that three attackers, with their faces covered, entered the Directorate, located next to the University of Agriculture, and started firing. Some were shot and wounded while others jumped out of the windows, the witness said.
There were about 20 people including the students in the University as it had remained closed today due to Eid Miladun Nabi. The compound includes a hostel facility for diploma students and there were around 100 people there at the time of attack, police said. The university hostel usually houses almost 400 students, but most had gone home for a long holiday weekend and only about 120 students remained.
Taliban militants stormed a training institute in Pakistan's northwestern city of Peshawar Friday, as the country marked the birthday of the Prophet Mohammed.
Trump Suggests Joe Scarborough Murdered His Intern In Florida
Before the 2016 presidential election, Scarborough received criticism for being too close to Trump, but has since shifted his stance.
Allardyce confirmed as new Everton manager
David Unsworth will remain in charge of the Blues for tonight's Premier League match against West Ham United at Goodison Park. But that turned sour after only one match, with Allardyce stepping down in September 2016 following a newspaper sting.
Asus Zenfone Max Plus (M1) with full-view display unveiled: Specifications, features
The Zenfone Max Plus (M1 ) is backed by a 4,130mAh battery, and Asus claims it can deliver up to 26 hours of talktime on 3G. The front gets an 8MP selfie shooter with a f/2.0 aperture and 85-degree wide angle lens that helps take group selfies.
"We were sleeping when we heard gunshots".
The Tehreek-e-Taliban Pakistan (TTP) group claimed responsibility for the attack. "I got up and within seconds everybody was running and shouting, "The Taliban have attacked", he told Reuters. In it, one of the gunmen raced into a building and firing his weapon as he went room to room searching for students.
According to Hayatabad Medical Complex Director Shahzad Akbar, six dead and 18 injured were brought to the hospital.
Police officers said that five people were rushed to hospital with injuries.
The attack also bore striking similarities to a 2014 Taliban massacre at the army-run school in Peshawar that killed 151 people, mostly schoolchildren.