Defense contractor charged with giving up military secrets