A South Carolina man has been sentenced to life in prison for gunning down a New Mexico state police officer who had stopped to help him