Pakistani Taliban gunmen disguised in burqas stormed the campus of an agriculture college in Pakistan on Friday, killing at least nine people and wounding 35, police and hospital officials said.

Police and army troops summoned to the scene killed all of the attackers at the Agriculture Training Institute in the northwestern city of Peshawar about two hours into the attack, the military's press wing said.

The Pakistani Taliban claimed responsibility, saying in a message from spokesman Mohammad Khorasani that they had targeted a safe house of the military's Inter-Services Intelligence agency.

The gunmen arrived at the campus in an auto-rickshaw, disguised in the burqas worn by many women in the region, Peshawar police chief Tahir Khan said.

They shot and wounded a guard before entering the campus, he said.