Retiring generals and departing top Pentagon officials once migrated regularly to the big established weapons makers such as Lockheed Martin Corp. and Boeing Co. Now, they are increasingly flocking to venture capital firms that have collectively pumped billions of dollars into Silicon Valley-style startups.