A drifter accused of fatally shooting a single mother he met through a telephone dating service has pleaded guilty as part of an agreement with prosecutors.