PESHAWAR, Pakistan — A powerful roadside bomb in the militant hub of North Waziristan killed at least 14 Pakistani soldiers and wounded at least 25 on Sunday, a senior military official and local tribesmen said.

The bombing’s toll was one of the largest suffered by the Pakistani military during recent operations in the tribal areas, and it followed a week of militant attacks in other cities that left more than 130 people dead.

The latest violence came as the government was trying to address political fallout from attacks on Thursday, in which two bombs killed 96 people in an ethnic Hazara neighborhood in the southwestern city of Quetta. The grieving Hazaras — who are Shiites, a minority in Pakistan — refused to bury the victims, demanding that the military take over security in Quetta, which has been hit by dozens of sectarian attacks in recent years.

In response to the furor, Prime Minister Raja Pervez Ashraf visited Quetta on Sunday to meet the victims’ families. He later announced the dismissal of the chief minister who ran the province of Baluchistan, where Quetta is located, according to the Pakistani media, and put the governor, who is appointed by the central government, in charge. The move puts the province more firmly under the government’s control. And by early Monday, news reports said the government had persuaded the protesters to begin burying their dead.