Islamic State claimed responsibility for a suicide bombing that killed at least 18 people in a Pakistan market, the group’s Amaq news agency said on Saturday.