Islamic State claimed responsibility for an attack on Monday on a mosque in Western Herat province in Afghanistan, which killed at least five people, the group's Telegram channel said on Tuesday.