A military colonel in Madagascar has announced that the armed forces are taking control of the country.