President Andry Rajoelina had promised to resign if he didn't fix the country's problems within a year.