The publishers of the Astounding Science Fiction magazine knew that the US government had started a major scientific project in New Mexico during WWII because so many of their subscribers suddenly changed their postal address to Los Alamos, New Mexico.
They received a visit from the FBI when they published a story in 1944 called Deadline, describing the use of Uranium-235 in a nuclear fission atomic bomb.