The injured are being taken to Khyber Teaching Hospital for treatment.
Reportedly, an explosion was also heard amid intense firing.
Authorities said the gunmen had been killed and security forces had cleared the area after searching for remaining militants.
The attackers reportedly exchanged fire with security forces at the Directorate of Agriculture Institute of Peshawar on Friday morning, the chief of police in the northwestern city, Tahir Khan said.
The KP police said that all terrorists were neutralised after a successful clearance operation by the security forces. "I got up and within seconds everybody was running and shouting 'the Taliban have attacked, '" said a student.
A spokesman for the Tehreek-e-Taliban Pakistan, Muhammad Khurasani, claimed responsibility for the attack in a telephone call to foreign wire service AFP.
Agriculture Directorate is located in front of the Agriculture University where gunmen opened fire at and entered the building under the cover of fire.
"Our mujahids have attacked the building, God willing our fighters will fight till the last drop of blood", he said.
The area where the incident occurred is a hub for educational institutions in the city including the University of Peshawar.
The Pakistani Taliban later released a video showing the attack, recorded with what appeared to be a body-mounted camera. The university hostel usually houses almost 400 students, but most had gone home for a long holiday weekend and only about 120 students remained.
"We were sleeping when we heard gunshots".
In a similar attack, Pakistani Taliban gunmen, in December 2014, had killed 134 children at Peshawar's Army Public School. Peshawar, close to the Afghan border, has seen some of the worst violence during the Taliban insurgency in recent years.
The attack apparently set off rocket sirens in the Israeli town of Sderot and other communities surrounding the Gaza Strip. Witnesses in the southern Gaza Strip said two Islamic Jihad posts was hit there.
Brandenburg state police said they inspected the package and confirmed that it was a possible IED that was successfully defused . Schroeter told reporters at the scene earlier that nails and a powder were inside the parcel.
The station also writes that Paul Caruso, a geophysicist with the USGS, says there is potential for aftershocks. That quake, which occurred on August 23, forced the shutdown of the Washington Monument due to damage.
MGM Resorts International, which owns the Bellagio, issued a statement saying they are working with the police. The employees complied with the suspect's demands and handed him an undetermined amount of money.
Considering that a full moon can be covered with a fingernail, even a 7% larger moon may not look that much bigger. On Sunday, Dec. 3 is when the moon will become totally full and at its brightest, specifically at 10:47 a.m.
We agree to these contracts without reading them or even understanding what types of behavior scale from prohibited to illegal. Every time Epic took action, he simply created new accounts under false names and continued to play and cheat at Fortnite .
There was widespread speculation on social media that he was heading to Australia after being pictured at the airport on Monday. Ben Stokes is not on his way to join England's Ashes squad in Australia , Press Association Sport understands.
The parade starts at 6 p.m. on Saturday and will be followed by a tree lighting ceremony and band performance. Then enjoy the parade, starting on Meadow Avenue at 2 p.m. "So come to Hague and have a fun family day".
His slow approach to filling diplomatic openings at the State Department is also a factor, another official said. Asked about Tillerson, White House spokeswoman Sarah Sanders said the secretary of state remained in his post.
Nigeria eye shock win after Argentina SWC draw
The country went into that game in danger of missing out not only on direct qualification but a spot in the playoffs. The draw comes 17 days after Rohr's men stunned Argentina by recovering from two goals down to win 4-2 in Krasnodar.
Stranger Things Season 3 Is Coming
But it's still great to have the next season set in stone, even if we know very little about where it's headed. Creators Matt and Ross Duffer have confirmed that Netflix has already greenlit Stranger Things Season 3.
Dogs are more intelligent than cats, Vanderbilt study shows
The researchers found that dogs have "about twice as many neurons in the cerebral cortex [as] cats do", said Herculano-Houzel. The study's findings also challenge the prevailing view that domesticated animals have smaller brains than their wild cousins.
Update Immediately to Block the Root Vulnerability Bug
When that happens, "Make sure to update your Macs and MacBooks at your earliest opportunity after it is released", he added. In October a flaw was discovered that could have allowed anyone to gain access to encrypted hard disk volumes .
Uber Admits 2.7m UK Users Had Data Stolen In Hack
Uber spokeswoman Molly Spaeth said in an email the company is "committed to changing the way we do business". Ferguson says that Uber did not notify his office until this month, more than a year after the breach.
We're razing our Redmond campus to build a mini city
A two-acre open air plaza will house running and walking trails, soccer and cricket fields, and retail space. Microsoft says the new campus will be "built for pedestrians and bikes" with auto parking moved underground.
BMW's all-new i8 Roadster makes LA debut
The long-awaited i8 Roadster will go on sale alongside an updated version of the two-plus-two i8 coupe early next year. Its cell capacity has risen from a previous 20 Ah to 34 Ah, with energy capacity increasing from 7.1 kWh to 11.6 kWh.
49ers announce Jimmy Garoppolo will start Sunday vs. Bears
The team announced on Tuesday that Garoppolo will be the 49ers starting quarterback against the Chicago Bears in Week 13. Beathard, who was making his fifth start after displacing veteran Brian Hoyer for the top job Week 6 in Washington.