Islamic State claims attack in Afghanistan that killed three Spaniards