By Shams Momand and Jibran Ahmad
MOHMAND AGENCY/PESHAWAR, Pakistan (Reuters) - A suicide bomber shouted "Allahu akbar" and blew himself up in a packed mosque in northwestern Pakistan, killing at least 25 people and wounding 30 during Friday prayers, a local official said.
A splinter group of the Pakistani Taliban, Tehreek-e-Taliban Pakistan Jamaat-ur-Ahrar (TTP-JA), claimed responsibility for the blast in Payee Khan, a village in Mohmand Agency that is part of the lawless Federally Administered Tribal Areas (FATA) bordering Afghanistan.
The group said it was a revenge attack, accusing tribesmen in the area of launching an assault on its forces and of capturing militants and handing them over to the government.
- PHOTOS: New art and old relics at Mickey Mouse's NYC gallery 25 Pictures
- PHOTOS: See Yes on 3 supporters react to historic transgender rights Question 3 win 11 Pictures
- PHOTOS: A look back at Queen performing in the 1970s and 1980s 22 Pictures
- All of these celebrities have had their nudes leaked 35 Pictures
- PHOTOS: A look at Idris Elba's style through the years 20 Pictures
- PHOTOS: Heidi Klum's annual Halloween party and other amazing celebrity costumes 17 Pictures
- These are the spookiest cities per capita in the U.S. 5 Pictures
- Food Network star talks pumpkin carving 1 Pictures
- Who is Alexander Edwards, Amber Rose's new boyfriend? 9 Pictures
- Is Cardi B pregnant again? This tweet has people guessing 6 Pictures
- Natural Museum's best wildlife photos of the year 5 Pictures
"The suicide bomber was in a crowded mosque, he shouted 'Allahu akbar' (God is greatest) and then there was a huge blast," Naveed Akbar, deputy administrator of Mohmand Agency, told Reuters.
Akbar added that some fatalities appear to have been caused when part of the mosque caved in from the force of the blast.
"A portion of the mosque and verandah collapsed in the blast and fell on worshippers. We are still retrieving bodies and the injured from the rubble of the mosque," he said.
Local tribal elder Haji Subhanullah Mohmand said local tribesmen had gathered a volunteer force, killed one insurgent and captured another.
"It seems to have enraged the militants and they got their revenge by carrying out a suicide attack in a mosque today," Mohmand said.
Pakistan's frontier regions, which are deeply conservative and hard to access due to rough terrain, have long been the sanctuary of fighters from al Qaeda, the Taliban and other militant groups.
In 2014 the army launched a major operation in other parts of FATA including North and South Waziristan against insurgents who routinely attacked government officials and civilians.
Pakistan Prime Minister Nawaz Sharif condemned the bombing and said the "attacks by terrorists cannot shatter the government's resolve to eliminate terrorism from the country."
Security in Pakistan has improved in recent years - the military says "terrorist incidents" dropped from 128 in 2013 to 74 last year - but Islamist extremists continue to stage major attacks.
A bombing of lawyers in the city of Quetta killed 74 people last month, an attack claimed by both the Islamic State and Jamaat-ur-Ahrar, a breakaway faction of the Pakistani Taliban.
Jamaat-ur-Ahrar also claimed the Easter Sunday bombing in a park in the eastern city of Lahore that killed 72 people, many of them children.
Most of the myriad militant groups that stage attacks inside Pakistan seek to overthrow the government to establish an Islamic theocracy and impose a stricter interpretation of the religion than is practiced in much of the country.
Other armed groups based in the country target neighboring Afghanistan and Indian-controlled Kashmir.
(Writing by Drazen Jorgic; Editing by Kay Johnson, Mike Collett-White and Andrew Heavens)