At least half a dozen Taliban gunmen opened fire on a compound housing policemen in eastern Pakistan on Thursday, killing nine of them, officials said.
The police who were targeted in the city of Lahore were training to become prison guards, said Habibur Rehman, the chief of police in Punjab province, where Lahore is the capital.
Pakistani Taliban spokesman Ahsanullah Ahsan claimed responsibility for the attack, saying it was revenge for the police torture of their fighters in prison. He spoke to The Associated Press by telephone from an undisclosed location.
The police who were attacked were recruited from northwest Khyber Pakhtunkhwa province, a one-time base for the Taliban, and were brought to Lahore for training, said Rehman.
The Pakistani military launched a massive offensive against the Taliban in Khyber Pakhtunkhwa's Swat Valley in 2009, and many militants were captured and imprisoned.
Police said they suspect the gunmen who attacked the housing compound were the same ones who killed seven soldiers and a policeman at an army camp Monday about 160 kilometers (100 miles) northwest of Lahore. The Pakistani Taliban claimed responsibility for that attack as well.
The Pakistani Taliban have waged a blood insurgency against the government over the past few years, demanding it break ties with the United States and establish Islamic law throughout the country. The militants have killed thousands of soldiers, police and civilians in attacks.