A former Orange County prosecutor and acting state Supreme Court justice was fatally shot on Tuesday as FBI agents attempted to arrest him in connection with a federal corruption case.