Islamic State claimed responsibility for an explosion near a polling station in Quetta, Pakistan, on Wednesday, according to the group’s AMAQ news agency.