A Kansas City man was sentenced to 15 years in prison Friday for firing a gun at a Lee’s Summit police officer in a June 2012 incident.

Ash-Od L. Chavez, 18, of Kansas City, had pleaded guilty earlier this year to second-degree assault of a law enforcement officer.

A neighbor called Lee’s Summit police to a house in the 500 block of Northeast Howard Avenue on June 21, 2012, saying Chavez had been displaying a handgun.

When police arrived, Chavez shot twice at the officer and fled on foot. The officer returned three shots while chasing him but stopped when he saw a group of children playing in the area.

Officers then pursued Chavez and found him in a trash bin in the Sage Crossing apartment complex, where he surrendered. Chavez later told police he fired because he was afraid of being caught with a weapon.