Defense giant Northrop Grumman is selling a piece of its business to a Herndon defense contractor for about $347 million.