The vote is being hailed as the first democratic transition in the history of the coup-prone state.