Taliban gunmen and a suicide bomber attacked a British security compound in Kabul, killing at least 10 people and injuring 19.