Islamic State on Sunday claimed responsibility for an attack by gunmen on tourists in Afghanistan's central Bamiyan province, the group said on its Telegram channel.
Three Spanish tourists were killed and at least one Spaniard was injured in the attack, Spain's foreign ministry said on Friday.
Taliban interior ministry spokesman Abdul Mateen Qaniee four people had been arrested over the attack in which gunmen opened fire. In addition to the three foreign tourists, one Afghan citizen had been killed in the attack. Four foreigners and three Afghans were also injured, he added.
Mountainous Bamiyan is home to a UNESCO world heritage site and the remains of two giant Buddha statues that were blown up by the Taliban during their previous rule in 2001.
Since taking over Afghanistan in 2021, the Taliban have pledged to restore security and encourage a small but growing number of tourists trickling back into the country. They have sold tickets to see the site of the destroyed Buddha statues.
Friday's attack was among the most serious targeting foreign citizens since foreign forces left and the Taliban took over in 2021.
The Islamic State claimed an attack that injured Chinese citizens at a hotel popular with Chinese businessmen in Kabul in 2022.