The company formerly known as Raytheon has entered into a definitive agreement to sell its cybersecurity, intelligence and services business, which is based in Virginia.