A suicide bomber detonated his pickup truck loaded with explosives, killing 32 people on Tuesday evening at a marketplace in an Iraqi town contested by both the central government in Baghdad and the Kurdish regional authorities, Iraqi officials said.