Islamic State claimed responsibility for an attack that killed 16 people in Afghanistan’s Nangarhar province, the militant group’s Amaq news agency said on Wednesday.