Local media reported that police and the army reached the site shortly afterwards and exchanged fire with the attackers.
The Dawn quoted police officials, as saying that the terrorists aimed to attack the university hostel.
The area where the attack took place is a hub for educational institutions in the city, including the University of Peshawar. An eyewitness said he and his colleagues were sleeping when the firing started Geo News reported.
The attack in Peshawar occurred on a holiday celebrating the birth of the Prophet Muhammad. NBC News Google Maps
A senior police official said all the terrorists were killed by security forces.
Ordinarily, there are around 400 students at the hostel but there were only some 150 on Friday on account of Eid Milad-un-Nabi, the birthday of Prophet Mohammad, said a student who witnessed the attack. The university hostel usually houses almost 400 students, but most had gone home for a long holiday weekend and only about 120 students remained.
The Pakistani Taliban later released a video showing the attack, recorded with what appeared to be a body-mounted camera.
Honor 7X Sale Starts From December 7 From 12.00 PM Onwards
The Honor V10 of Huwaei's is a mix of its phablets Mate 10 and Mate 10 pro significantly less in costs than both of them. It was part of the "Make in India" initiative that Huawei Honor has taken a keen interest and significant part in.
"This attack is a reaction to the continued brutalities by the intelligence agencies of Pakistan on Tehreek-e-Taliban Pakistan and innocent people especially prisoners and clerics", the group said. After shooting the guard present at the gate, the terrorists went on to the hostel of the building and began firing.
Shehzad Akbar, medical director of Hayatabad Medical Complex, said six people died of their wounds and 18 were being treated.
At least 12 people were killed and 38 including two policemen and one journalist sustained injuries who were then shifted to Khyber Teaching Hospital.
Qualcomm Is Suing Apple For The iPhone X
The back and forth legal battle between Apple and Qualcomm picked up some steam during the last two days. There are more lawsuits filed by Apple and Qualcomm against each other in the dispute over patents.
In December 2014, a Taliban attack on the army-run school in Peshawar killed 151 people, mostly schoolchildren.
The Taliban are fighting to topple the government and install a strict interpretation of Islamic law. They are loosely allied with the Afghan Taliban insurgents.
Tip Fires Shots At The Grammys For Snubbing A Tribe Called Quest
Q-Tip also took personal affront at how ATCQ wasn't nominated after giving them a spirited performance a year ago . This f**king album that we just put out, this last Tribe album , it stands with everybody's s**t that's up there.