A suicide attacker with a bomb in his turban posed as a Taliban peace envoy and assassinated a former Afghan president who for the past year headed a government council seeking a political settlement with the insurgents.

Tuesday's attack, carried out in former President Burhanuddin Rabbani's Kabul home, dealt a harsh blow to attempts at ending a decade of war. The killing of Rabbani, an ethnic Tajik and one of the wise old men of Afghan politics, will blunt efforts to keep in check the regional and ethnic rivalries that help feed the insurgency.

President Hamid Karzai cut short a visit to the United Nations and called on Afghans to remain unified in the face of Rabbani's "martyrdom." An emergency Cabinet meeting was called for Wednesday.

The attack came days after a daytime assault by insurgents on the U.S. Embassy and NATO headquarters that deepened a sense of insecurity in the capital.

NATO said in a statement that two suicide bombers were involved in the attack on Rabbani, both of them men who had feigned a desire to reconcile with the government. It was unclear if a second bomber was able to detonate his explosives.

Afghan officials, however, insisted there was only one attacker. Four men were wounded, including a key presidential adviser, said Mohammad Zahir, the head of criminal investigations for the Kabul police. Initial reports had four bodyguards killed but Zahir said those were incorrect.

Close friends of Rabbani said that the former president returned from a trip to Iran to meet with a man who had been described as a high-ranking Taliban contact. The visitor, a young man, was shown into the house by two of Rabbani's associates at the Afghan High Peace Council, who insisted that he did not need to be fully searched, said a friend who spoke anonymously because he was not a spokesman.

When Rabbani appeared, the man shook the former president's hand and bowed as a sign of respect, said Fazel Karim Aimaq, a former lawmaker from Kunduz province and friend of Rabbani.

"Then his turban exploded," Aimaq said. The blast broke windows in Rabbani's home and shook nearby houses.

As the leader of the anti-Taliban Northern Alliance, Rabbani sought a political deal with the Taliban -- with U.S. blessing -- and he will be hard to replace soon. His death could unleash a well of resentment among some senior Northern Alliance members, who accuse Karzai of colluding with the Taliban.

Already Afghanistan's ethnic minorities have begun to rearm in the face of negotiations with the Taliban, who are mostly ethnic Pashtuns, as is Karzai. Rabbani's killing is likely to accelerate that process and lay the foundation for a possible civil war once U.S. combat troops leave the country or take on support roles by the end of 2014.

In Kandahar province, the birthplace of the Taliban movement, officials worried that the assassination would dampen peace efforts.

"It is a great loss not only to the peace program, but for this nation as well," said Atta Mohammad, who heads up reconciliation efforts in the province. "This bombing will have a big impact on the peace program for some time."

President Barack Obama said the killing will not deter the U.S. and Afghanistan from helping that country's people live freely. He said the former president's death is tragic because he was a man who cared deeply about Afghanistan. Obama commented at the start of a meeting in New York with Karzai.

Shukria Barakzai, a lawmaker from Kabul, was visibly shaken as she stood outside Rabbani's house in the Wazir Akbar Khan area of the city, near the U.S. Embassy and NATO headquarters.

"We don't want the whole peace process to get stuck," she said. "We have to continue, we have to."

Rabbani, who was about 70 years old, headed the country's High Peace Council, set up by the Afghan government to work toward a political solution to the decade-long war. It had made little headway since it was formed a year ago, but it was backed by many in the international community as an important first step toward a settlement.

British Prime Minister David Cameron said Rabbani had played a key role in the peace process.

"He was a respected former president of Afghanistan and played a vital role as the chairman of the Afghan High Peace Council," Cameron said. "He will be sorely missed but the work of the Peace Council will go on. We remain determined to see Afghanistan prosper."

Rabbani was president from 1992-1996, heading the Afghan government that preceded the Taliban rule. After he was driven from Kabul in 1996, he became the nominal head of the Northern Alliance, mostly minority Tajiks and Uzbeks, who swept to power in Kabul as a U.S.-led invasion toppled the Taliban regime in late 2001. Rabbani headed the Jamiat-e-Islami political party.

"We lost our leader. We lost our leader," Habibullah, a close friend of Rabbani's, said as he stood crying outside a hospital.

Karzai's adviser Mohammad Masoom Stanekzai was wounded in the attack. A relative who answered Stanekzai's phone said that the wounds did not appear to be life-threatening, but that Stanekzai was in the hospital. The relative declined to give his name because of the sensitivity of the situation. Also wounded were council member Rahmatullah Wahidyar, who had brought the supposed peace envoy to Rabbani's house, and two of Rabbani's staffers.

Stanekzai is a top official with the High Peace Council and the head of a reintegration program for mid- and lower-level Taliban back into Afghan society. The program has so far managed to reintegrate only about 2,000 of the estimated 25,000-40,000 insurgents in Afghanistan.

Reintegration was the other half of reconciliation, which aims to broker a peace deal with the senior Taliban leadership.

Last week, Rabbani led a conference of provincial governors and officials who met in the southern city of Kandahar to develop policies for reintegrating insurgents who want to give up the fight. At the conference, he urged those in the provinces to counter insurgent propaganda claiming that international forces were invaders in Afghanistan.

Pakistan's Prime Minister Yusuf Reza Gilani and President Asif Ali Zardari condemned the assassination. They conveyed their "extreme anger and shock" to the Afghan government over the killing, according to a statement released by the Pakistan government.

Taliban factions based in northwest Pakistan and allegedly supported by elements of the Pakistani security forces have been blamed by Afghan and U.S. authorities for high-profile attacks in Afghanistan, especially in Kabul, over the past three years.

Barakzai said that residents of Kabul were tired of the constant attacks in the city, including a 20-hour assault against the U.S. Embassy and NATO headquarters in Kabul that finally ended Sept. 14. That attack killed 16 Afghans -- five police officers and 11 civilians, more than half of them children. No one at the embassy or NATO was killed.

"Every single week we have such an attack," she said.

U.S. and Afghan officials have blamed the Pakistan-based Haqqani network for carrying out that attack and others in the capital and openly stated that the insurgent group has ties to the Pakistani government -- a rare public shot at the role Afghanistan's neighbor to the east plays in bolstering the insurgency.

Abdullah Abdullah, a Tajik leader who lost to Karzai in the 2009 presidential election, said Rabbani's death was significant.

"He was a jihadi leader. From the beginning to the end of his life he did his best to bring peace and stability to this country, and it is a big loss for all Afghan people," Abdullah said.

Abdullah, who has been critical of Karzai's attempts to reconcile with the Taliban, said "we should recognize and know our enemy from lower ranks up to the top officials of the country because by any means, by any way, they are trying to kill us and eliminate all high-ranking officials and jihadi leaders."

The Taliban have been targeting senior officials in the government and close associates of Karzai.

On July 27, an insurgent with a bomb under his turban killed the mayor of Kandahar, Ghulam Haider Hamidi. Five days earlier, a close associate gunned down Karzai's powerful half brother, Ahmed Wali Karzai, at his home in Kandahar. During Karzai's funeral a turban bomber killed a prominent cleric. The killings prompted Karzai to urge Afghan religious leaders to condemn the use of turban bombs.

That same month, Karzai's inner circle suffered another hit when gunmen in Kabul killed Jan Mohammad Khan, a presidential adviser on tribal issues and a former governor of Uruzgan province, which is also in the south.

On May 28, a suicide bomber infiltrated a high-level meeting in Taloqan, Takhar province, killing northern Afghanistan's top police commander, Gen. Mohammed Daoud, provincial police chief Shah Jehan Noori and two German soldiers. He also seriously wounded the German NATO commander in northern Afghanistan, Maj. Gen. Markus Kneip.