Heavily armed militants were holding up to 15 soldiers hostage inside Pakistan's army headquarters early Sunday after they stormed the complex in an audacious assault on the heart of the most powerful institution in the nuclear-armed country.

Ten people were killed in the attack, including two ranking officers.

The standoff was continuing 12 hours after assailants wearing military uniforms bundled from a white van and launched the strike, which appeared to be a warning to the military that its planned offensive on the insurgents' stronghold along the Afghan border would be met with attacks against targets across Pakistan.

SLIDESHOW: Pakistan Attacks

The government said the assault on the headquarters, which followed a bloody market bombing and a homicide blast at a U.N. aid agency in the past week, had strengthened its resolve to push into South Waziristan — a mountainous region home to Al Qaeda leaders where security forces have been beaten back by insurgents before.

The spasm of violence was confirmation that the militants had regrouped despite recent military operations against their forces and the killing of Pakistani Taliban leader Baitullah Mehsud in a CIA drone attack in August. His replacement vowed just last week to step up attacks around the country and repel any push into Waziristan.

Army spokesman Maj. Gen. Athar Abbas said "four or five" assailants were holding between 10 and 15 troops hostage in a building close tstore complete control," Abbas said.

Abbas said six soldiers were killed, included a brigadier and a lieutenant colonel, and five wounded, one critically.

Pakistani media said the Taliban claimed responsibility for the attack.

A police intelligence report in July obtained by the Associated Press on Saturday warned that members of the Taliban along with Jaish-e-Mohammed, a militant group based in the country's Punjab province, were planning to attack army headquarters after disguising themselves as soldiers. The report was given to the AP by an official in the home affairs ministry in Punjab's home department.

Officials said Saturday they had raided a house in the capital where the attackers were believed to have stayed. They found military uniforms and bomb-making equipment.

The United States has been pushing Pakistan to take strong action against insurgents using its soil as a base for attacks in Afghanistan. The army has previously been unwilling to go into Waziristan with significant force, but has likely been emboldened by its successes against the militants in the Swat Valley earlier this year and the killing of Baitullah Mehsud.

"I want to give a message to the Taliban that what we did with you in Swat, we will do the same to you there (in Waziristan), too," said Interior Minister Rehman Malik. "We are going to come heavy on you."

Militants regularly attack army bases across the country and bombed a checkpoint the outside army compound in Rawalpindi two years ago — one of several major bombings to hit the garrison city in recent years. But rarely have the Taliban mounted an armed assault in the city involving multiple fighters.

Saturday's gunbattle following a car bombing that killed 49 on Friday in the northwestern city of Peshawar and the bombing of a U.N. aid agency Monday that killed five in Islamabad. The man who attacked the U.N. was also wearing a security forces' uniform and was granted entry to the compound after asking to use the bathroom.

Islamist militants have been carrying out nearly weekly attacks in Pakistan, but the sheer scale of Friday's bombing in Peshawar — which killed nine children — pushed the government to declare it would take the fight to the lawless tribal belt along the border where Al Qaeda leader Usama bin Laden may be hiding.

Any operation in Waziristan will be very difficult. Militants are believed to have 10,000 well-armed fighters there, and winter will arrive in one month's time and could bog down troops. The army must also ensure that insurgents do not regroup elsewhere in the northwest, including Swat.