As missiles and drones flew over the United Arab Emirates, traders and Wall Street executives who’ve flocked to the Gulf in recent years found themselves confronting a threat few expected to materialize in a country that had pitched itself as the region’s safest hub.