The United States has ordered most staff at the embassy in Niger to leave as the military coup continues.