A Milwaukee man whose friend was fatally shot when they tried to rob a barbershop has been sentenced to 10 years in prison.

The Milwaukee Journal Sentinel reports a Milwaukee County judge sentenced 24-year-old Jeremy Pierce on Thursday. He was originally charged with felony murder but pleaded guilty to second-degree reckless homicide after agreeing to testify against getaway driver Marvin Sanders.

Sanders pleaded guilty to attempted robbery and was sentenced to 4 ½ years in prison.

A customer shot 18-year-old Clemon Ferguson twice in the head and wounded Pierce when the men tried to rob the barbershop in November 2012.

The judge says Pierce's admitted membership in a gang makes it unlikely he hadn't committed other crimes.

The man who shot Ferguson wasn't charged.