A U.S. official says the State Department is ordering nonessential U.S. diplomats and the families of all American Embassy personnel to leave Egypt after the Egyptian military removed Morsi and in anticipation of potential violence.