Pakistani officials say Taliban gunmen have stormed a military school in the northwestern city of Peshawar, killing two teenage students and wounding 25.

Police officer Javed Khan says the gunmen entered the school on Tuesday morning. He says army commandos quickly arrived at the scene and exchanged fire with the gunmen.

It's unclear if there are any hostages among the students.

Pakistani television showed soldiers surrounding the area and pushing people back.

Jamil Shah, a spokesman for Lady Reading Hospital, says two teenage students died in the incident and 25 others were wounded.

Taliban spokesman Mohammed Khurasani claimed responsibility for the attack in a phone call to media.

Peshawar has been the target of frequent militant attacks in the past.