A blast kills 31 on voting day, after a campaign overshadowed by concerns over fraud and violence.