U.S. military bases and embassies around the world were put on high alert to protect against potential backlash.