A second teenager accused of murdering a retired police officer as part of a deadly crime spree has agreed to a plea deal.