Raytheon directors punished the chief executive , William H. Swanson , by taking away almost $ 1 million from his 2006 compensation yesterday because he failed to give credit for material that was in a management book he wrote .