Islamic State fighters claimed responsibility on Saturday for a deadly overnight attack in a mosque in central province of Ghazni in Afghanistan.