Suspicions about leaks and a mistrust of senior military officers have defined much of the defense secretary’s first six months on the job.