The Afghan Taliban claimed responsibility on Tuesday for a car bomb attack near a heavily fortified foreign compound in Kabul that killed five people, including an Indian national.