Fatal confrontations between security forces and protesters have marred local elections.