A former captain with California's wildfire management agency has pleaded guilty to fatally shooting his girlfriend and son, officials said Tuesday.