The United States said it was withdrawing some personnel from key bases in the Middle East as a precaution given heightened regional tensions.