The military has a very prickly relationship with the press.