Story highlights "This incident is a flagrant violation of Burkina Faso's constitution," U.N. chief says

Days before the raid, a commission had recommended the disbanding of the presidential guard

(CNN) Elements of Burkina Faso's military declared they were in control of the nation after presidential guards stormed a Cabinet meeting and seized the President and the Prime Minister -- days before the general elections.

Guards detained interim President Michel Kafando and other government ministers during the raid in the capital Wednesday, the United Nations said.

It's unclear where the guards took the President, Prime Minister Isaac Zida and the other officials.

Hours after their detention, an unidentified military official took to the airwaves Thursday and said the group, now calling itself the National Council for Democracy, "decided to put an end to the deviant transitional regime."

The official announced that the country's new leader would be a former general, Gilbert Diendere. He was an adviser to former President Blaise Compaore, who stepped down under pressure by protesters in 2014 after ruling for 27 years.

Read More