Actually entering a military facility which is not open to the public and taking pictures is definitely against the law, and should be handled as such.
Being in a legally publicly accessible place, and taking pictures from that place, is not, and should not be illegal. If they don't want pictures taken from that space, the space would need to be redesignated as a priavte part of the facility, without public access, or have barriers erected to block line of sight (or both).
Side note: Forbes is a crap non-journalistic site now, avoid using it as a reference.