Defense secretary was critical of US president's plan over summer to use military to quash civil unrest, recently held talks with Israel over F-35 jet sales to UAE