As the director of the Defense Intelligence Agency, which is part of the Pentagon and the military’s largest intelligence organization, Mr. Flynn was expected to notify officials about any contacts with foreigners he didn’t know, particularly from an adversary nation such as Russia, the former official said.