The Taliban also claimed responsibility for the 22-hour weekend attack on the nation's heavily fortified army headquarters, saying a cell from Pakistan's most populous province carried out the raid.
The claim that a Punjabi faction of the Pakistani Taliban was behind that strike is a sign the insurgents have forged links with militants outside their main strongholds in Pashtun areas close to the Afghan border, increasing their potency.
The army, however, maintained it was launched from South Waziristan - where the military is preparing for what will likely be a long and bloody offensive against the major base of the Taliban along the frontier.
In advance of that offensive, the militants have launched a wave of attacks across the country.
"This situation is looking pretty ugly," a senior Pakistani government official told CBS News' Farhan Bokhari after Monday's attack in Shangla district. "The dangerous part of the attack in Shangla is that this was the area from which the Taliban were pushed out," he added. The official spoke on condition of anonymity as he was not authorized to discuss the recent wave of attacks.
A senior Western diplomat in Islamabad, who also spoke to Bokhari anonymously, called the attacks of the past week "very alarming," and said they underlined the growing capacity of the Taliban to strike a variety of targets in different areas.
In the latest strike, a suicide bomber detonated a car packed with explosives near an army vehicle in a market in the northwest Shangla district, provincial Information Minister Mian Iftikhar Hussain said. The attack killed 41, including six security officers, and wounded 45 other people, he said. There was no immediate claim of responsibility.
In a statement on the state-run news agency, President Asif Ali Zardari said the attacks would not undermine the government's resolve to eliminate the insurgent groups.
"Such attacks cannot deter us from the offensive against the militants," Hussain said. "We will continue our fight till the death of the last terrorist."
Shangla lies east of Swat, which has been the focus of an intense military operation against the Taliban. The army says it has largely cleared the valley of the insurgents, but the bombing demonstrated their continuing ability to mount deadly attacks there. Many Taliban are believed to have melted into the rural areas or gone to neighboring districts.
The recent string of bloody attacks began last week when a suicide bomber blew himself up inside a heavily guarded U.N. aid agency in the heart of the capital, Islamabad, killing five staffers. On Friday, a suspected militant detonated an explosives-laden car in the middle of a busy market in the northwestern city of Peshawar, killing 53 people.
Those attacks were followed by the raid on army headquarters in the city of Rawalpindi on Saturday that killed nine militants and 14 others. Military spokesman Maj. Gen. Athar Abbas said the militants were hoping to seize senior army officials and trade them for their jailed comrades.
"Their main focus was the release of their leaders," he said.
The attack was launched from South Waziristan and the assailants were in contact with their handlers there during the assault, Abbas said.
The army also intercepted audio of deputy Taliban leader Waliur Rehman getting an update on the attack and telling a subordinate to pray for the assailants, Abbas said.
Abbas said the attacks were aimed at making the government reconsider its decision to go after the Taliban in their heartland on the Afghan border. However, the government had already decided in principle to launch the offensive, and the army will now decide how and when to carry it out.
Taliban spokesman Azam Tariq told The Associated Press the assault on army headquarters was only the first in a planned wave of strikes intended to avenge the killing of Pakistani Taliban chief Baitullah Mehsud in a CIA missile strike in August.
"This was our first small effort and a present to the Pakistani and American governments," he said.
He said the raid on army headquarters was carried out by the "Punjabi faction" of the militant group and it had given orders to militant branches in Pakistan's other provinces - Sindh, Baluchistan and the Northwest Frontier Province - to launch similar operations.
While membership of Pakistan's militant groups has always been overlapping, the prospect of them joining forces will alarm the government of the nuclear-armed nation as well as its Western allies, who need a stable Pakistan to defeat insurgents in neighboring Afghanistan.
The standoff at army headquarters followed warnings from police as early as July that militants from western border areas were joining those in the central Punjab province in plans for a bold attack on army headquarters.
The suspected ringleader in the raid, a Punjabi named Mohammad Aqeel - also known as Dr. Usman - was believed to have orchestrated an ambush on Sri Lanka's visiting cricket team in Lahore this year. Aqeel was a former member of the army medical corps who deserted in 2004 to join the militants, Abbas said.
"His military knowledge had brought him close to the Taliban and al Qaeda leadership," said Zulfikar Hameed, a senior police investigator who led the team that investigated the attack on the Sri Lankan cricketers.
Aqeel's history with the insurgents highlighted the complex ties between the nation's different militant groups.
He was initially recruited into Jaish-e-Mohammed and Lashkar-e-Janghvi, violent groups based in Punjab province, Hameed said. Aqeel later joined the Taliban in Waziristan and helped recruit and train militants from Punjab, he said.
Aqeel was also suspected in a failed attempt to shoot down then President Pervez Musharraf's plane with an anti-aircraft gun and was involved in a suicide attack that killed the army surgeon general, Hameed said.
Also Monday, the Lahore High Court told police to toss out two criminal cases against a hardline cleric India blames for the last year's deadly siege of Mumbai, an official said.
Police had accused Hafiz Saeed of illegally holding a public gathering and raising funds for a group they say was banned. The cases appeared designed to keep Saeed under some sort of detention while Pakistan probes his alleged role in the November attack that killed 166 people.
But government prosecutor Malik Abdul Aziz said the court found there was no proof the government ever technically banned the group, Jamaat-ud-Dawa. Saeed says Jamaat is a charity, but the U.N. has described it as a front for the militant group suspected in the siege, Lashkar-e-Taiba.
On Sunday, Pakistani Interior Minister Rehman Malik told CBS News that the military campaign against the Taliban in the South Waziristan region along the Afghan border was imminent. Other officials said, following a week of air strikes by U.S.-supplied F-16 fighter jets of the Pakistan Air Force, that a military ground campaign could begin within days. Analysts believe the sudden escalation in Taliban attacks is meant to cause widespread insecurity as a way to force the government to step back from a military advance into Waziristan.
U.S. Secretary of State Hillary Rodham Clinton said Sunday the Taliban siege of Pakistan's army headquarters showed extremists are a growing threat in the nuclear-armed American ally, but she contended they don't pose a.