An Afghan official says that at least six people have been killed after the Taliban attacked near the Spanish embassy in the capital Kabul.

Sediq Sediqqi, spokesman for the Afghan Interior Ministry, said on Saturday that four Afghan police officers and two others, including a foreigner, were killed in the attack.

Seven civilians and two policemen were wounded, Sediqqi said. Twelve foreign citizens were rescued by Afghan forces during the operation, he added.

Zabiullah Mujahid, spokesman for the Taliban, claimed responsibility for the attack in an email sent to media outlets.

The attack took place in the Kabul district of Shir Pur, which is home to many foreign embassies, guesthouses and the homes of high-ranking government officials.