Asadullah Khalid was wounded when the bomber struck at a guesthouse used by the National Directorate of Security (NDS) in a heavily guarded area of the capital. The intelligence agency said he had survived a "terrorist attack".
"Asadullah Khalid was the main target. A number of spies have been killed and wounded," said Taliban spokesperson Zabihullah Mujahid in a statement.
There were no immediate comments from officials on whether there were other casualties.
The bombing highlights Afghanistan's instability as US-led NATO troops prepare to withdraw by the end of 2014.
After more than 10 years of war against Western forces as well as Afghan troops, militants are capable of striking in the heart of the capital.
In a video message released by his office, President Hamid Karzai said: "The head of the NDS is now undergoing surgery ... the chief of the hospital has told me he is in a good condition and now we hope he will recover and he will be sent for further treatment elsewhere."
Afghanistan's parliament approved the nomination of Khalid as the new head of the NDS in September, an appointment that alarmed human rights groups who have long accused the agency of torturing detainees, allegations it denies.
"We will see more similar attacks in order to further increase uncertainty about 2014. It's part of the psychological warfare by the Taliban," said Davood Moradian, a former presidential adviser and head of the Afghan Institute for Strategic Studies, a think-tank.
Moradian said Khalid was a powerful ally for Karzai since he had built up a formidable network of contacts among the Pashtun community in the south and east of the country, where the insurgency is strongest.
He said Khalid was renowned for his tough stance against the Taliban and his belief that the Afghan government needed to take a tough line with the insurgents in any negotiations.
Human rights groups have been troubled by allegations that Khalid, a close aide of Karzai, ran a torture prison while he was governor of Kandahar. He denies any wrongdoing.
Khalid built a formidable intelligence network to infiltrate the Taliban while serving in previous posts as governor of Kandahar and Ghazni provinces, both hotbeds of insurgency, said Michael Semple, an expert on the Taliban at the Carr Center for Human Rights Policy at Harvard.
"He had access to significant operational funds and used these to run agents deep inside the Taliban in Quetta," Semple said, referring to the city in southwest Pakistan where many of the Taliban's leaders are believed to be based.
"He also has a reputation for conducting black operations, bombings and assassinations, which is why the Taliban fear him," Semple added.
Khalid is seen as one of the most effective operators in Afghanistan's security hierarchy.
Diplomats saw Khalid as an instrumental figure in a systematic attempt to rig the 2009 presidential election in favour of Karzai, which sparked a protracted showdown with Washington before Karzai was eventually returned to power.
As one of the most influential members of Karzai's circle, Khalid was poised to play a critical role in the fraught process of political transition before the next elections in April, 2014, when Karzai is bound by the constitution to step down.
Attempts to draw the Taliban into formal peace talks have made little headway, piling pressure on Karzai's government to improve security before Western combat troops withdraw.
Reconciliation efforts were dealt a major blow last year when Afghanistan's chief peace negotiator, Burhanuddin Rabbani died at his Kabul home when an insurgent he was due to hold talks with detonated explosives concealed in a turban.
COMMENTS (4)
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ
@MukeshAmbani
Ambani jee dial it down. Calling someone typical and narrow minded betrays your own lack of sophistication. You are right that a certain intelligence agency created these monsters but if you read the comments of the common Pakistani on this forum you will see that their thinking is not far from the thought process of said monsters.
The intelligence service has done a thorough job in brainwashing the masses and the action of these brainwashed people are before you on the news on a daily basis. Don't blame an Afghan for not showing sympathy for Pakistanis. I assure you that he did not mean to indict all Pakistanis.
As far as America or White people are concerned, that is another topic for another day.
" I don’t have any sympathy for Pakistani people becuase whats happening in their country, coz they created the monster and now its out of their control."
Typical narrow minded Afghan. Who created the monster, the people? Or a certain intelligence agency.
I wonder if you have no sympathy for US people too??? Ahhh maybe its different for the white man in the US.
DONT INDICT ALL PAKISTANIS FOR THE WRONGS OF ITS INTELLIGENCE AGENCIES.
when you create Talibans, those Taliban will not only attack innocent Afghans but will also turn on you, I don't have any sympathy for Pakistani people becuase whats happening in their country, coz they created the monster and now its out of their control. In Islam Muslim should choose for others as he choose for himself, but Pakistan consider it self a Muslim state but act as an infidel state of Israel. Stop supporting Taliban and Save yourselves and your economy, development, security and fuiture.
I wonder if the TTP will emulate their Afghan counterparts and follow through with a copy cat attempt on their spy chief? The noose is being tightened on these infidels and they are scrambling to stay relevant by trying to assassinate influential leaders.
They don't realize that their plots to assassinate Afghan leaders only diminishes their credibility with the public and strengthens the steely resolve of Afghans against these stooges. Asadullah Khalid will not only survive but he will remain resolute in his opposition to the enemies of Afghanistan.