At least 32 people have been injured in election-linked unrest that led Police to fire warning shots, the UN said.