The former president was projected to win the local election even as he awaited trial at The Hague on charges of crimes against humanity.