Military needs to work with intel community, says former DoD, CIA head