Some of the social media accounts and websites that often carry al-Qaida statements said the militants sought revenge for Yemen's coordination with the United States on drone strikes that have killed al-Qaida members.
The attack on the heavily guarded compound Thursday killed soldiers, doctors, patients and a number of foreigners, and injured more than 160 others, The New York Times reported.
Witnesses said the militants blew open an entrance to the compound with a car full of explosives, and then ran in and shot civilians in a hospital within the compound.
The assault on one of Yemen's most fortified and important security facilities appeared to be a new low in Yemen's descent into instability since its longtime president, Ali Abdullah Saleh, was forced from office after a popular uprising in 2011, the Times said.
Celebrity Families of 2014 [PHOTOS]