A South Carolina man has pleaded guilty to charges that he gunned down a New Mexico state police officer who had stopped to help him.