ALLENTOWN, Pa. -

A man accused of attempted homicide in shooting a man at a 7-Eleven has pleaded guilty to a lesser charge.

Thirty-seven-year-old Edwin Gonzalen of Allentown was arrested in connection with the shooting of Vincent Cotto at the convenience store at Seventh and Linden streets on July 23, 2013 in Allentown.

Police said they used surveillance video to identify Gonzalez.

He told police he shot Cotto over a drug deal.

He was originally charged with aggravated assault, attempted  homicide and other charges.

On Monday, Gonzalez pleaded guilty to aggravated assault. All other charges were dropped.

Sentencing is set for March 3.