Elite troops have detained the president - now officers say they are closing the country's borders.