The move followed weeks of intense and deadly protests against the government of President Andry Rajoelina, who said he would defy growing calls to resign.