Islamic State claimed responsibility for two blasts in the Afghan capital Kabul on Thursday, the group’s Amaq news agency reported.