A suicide bomber detonated an explosive belt at a Shia funeral northeast of Baghdad on Monday, killing at least 20 people, among them a militia commander, officials said.