The US State Department has ordered American diplomatic staff to leave Saudi Arabia after drone attacks near the US Embassy in Riyadh.