Militants attacked an isolated army checkpoint in Pakistan's restive northwest on Saturday, with at least 31 people killed in the initial assault, subsequent crossfire and a rocket attack on a house, officials said.
The Pakistan Taliban claimed responsibility, saying the attack was in response to a U.S. drone strike in neighbouring North Waziristan last month in which two commanders were killed.
The Pakistani military and pro-government militias have since 2009 regained territory from the Pakistan Taliban, who once controlled land a few hours' drive from the capital of Islamabad.
The militants attacked the post at Lakki Marwat early on Saturday.
Security sources said at least 12 militants and nine officials and civilians were killed in the clash. Two bodies had suicide bomb belts on them, an official said.
"Cross-firing between militants and security officials continued for four hours," one source said.
The militants also targeted a house next to the camp with rockets, killing 10 members of one family, sources said.
"Pakistan has been co-operating with the U.S in its drone strikes that killed our two senior commanders, Faisal Khan and Toofani, and the attack on military camp was the revenge of their killing," the Taliban spokesman said.
He said four suicide bombers attacked the camp and blew themselves up. He said more than a dozen soldiers were killed.
Follow Emirates 24|7 on Google News.