The United States has temporarily closed its embassy in the Saudi capital , along with some other diplomatic facilities in the country , after threats of terrorist attacks .