The utter unpredictability of Hegseth’s moves, as described in interviews with 20 current and former military officials, has created an atmosphere of anxiety and mistrust.