Published: Aug 28, 2014 11:11 AM EDT

BARTOW, Fla.- A central Florida man has been sentenced to 15 years in prison for a fatal robbery.
    
As part of a deal with Polk County prosecutors to avoid a possible life sentence, 21-year-old Denard McCray pleaded guilty Tuesday to second-degree murder. He had been charged with first-degree murder and attempted robbery with a firearm.
    
Authorities say McCray was one of three men who attempted to rob Oberne Paul in January 2012. One of the men shot Paul in the upper torso, and the group fled the area.
    
The Ledger (http://goo.gl/bNeebi ) reports that the judge at McCray's hearing Tuesday encouraged him to pursue and complete a general education development test during his incarceration.
    
___
    
Information from: The Ledger (Lakeland, Fla.), http://www.theledger.com

(Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)