LANCASTER, Pa. (WHTM) – A teenager who helped to save a 5-year-old girl from her abductor nearly three years ago will serve up to 10 years in prison for robbing a city store at gunpoint.

Temar Boggs, 18, was ordered to serve 40 months to 10 years in state prison at his sentencing Friday, according to Lancaster County District Attorney Craig Stedman’s office.

Authorities say Boggs pointed a gun at a store clerk in December when he robbed the El Coqui Market in the 600 block of North Plum Street. Boggs and a 16-year-old accomplice who served as the lookout then fled with about $200.

He pleaded guilty to felony counts of robbery and conspiracy in June.

In court, Boggs and his attorney said he was drawn into the wrong group of friends after gaining notoriety from assisting police in the July 2013 kidnapping case.

Boggs was 15 when he and a friend spotted a girl who had been abducted from the yard of a Lancaster Township home. The boys chased the kidnapper’s car on bicycles until the man stopped and released the girl.

Congressman Joe Pitts praised Boggs and his friend on the floor of the U.S. House of Representatives, and a New York woman was so moved by their heroism that she set up a scholarship fund for them.

The girl’s abductor, convicted sex offender Harold Leroy Herr, pleaded guilty to kidnapping and sexually assaulting the girl in August 2013. He is serving a prison sentence of 50 to 100 years.