Islamic State claimed responsibility for the attack in a statement, saying the blast was a suicide bombing.