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