The chief of Afghanistan’s intelligence agency was wounded Thursday afternoon in an attack at a spy agency guest house in the capital, government officials said.

Asadullah Khalid, director of the National Directorate of Security, reportedly suffered wounds to his chest and midsection when a visitor detonated an explosive device, according to the officials. The spy agency said in a brief statement that Khalid had survived a "cowardly terrorist attack.’"

The Taliban claimed responsibility for the bombing, saying in a statement that a suicide "martyr" detonated an explosive vest "that killed and wounded numerous people, including the spy chief Asadullah Khalid."