A Hudson Valley man pleaded guilty to fatally shooting a local teen.

On Wednesday in Orange County Court, 23-year-old Tyler Castro of Newburgh, pleaded guilty to manslaughter in connection with the shooting death of a 17-year-old Newburgh man.

On August 30, 2016, Keyshan Gayle was hit with a single bullet in the City of Newburgh, as he stood near a deli that is a very popular hangout spot for Newburgh Free Academy students.

Gayle was pronounced dead shortly after. The teen graduated high school just months before the fatal shooting and was preparing to start college.

In court, Castro admitted that he was outside of a deli near the intersection of Fullerton Avenue and Third Street in the City of Newburgh and fired at a man that he hoped to seriously injured.

Castro admitted that instead of hitting his intended target, he shot and killed Gayle, who happened to be in the wrong place at the wrong time.

According to the Orange County District Attorney’s office, a video surveillance system inside the deli captured images of the victim being shot, but not of the shooter. No eye-witnesses to the shooting initially came forward and street cameras in the area were not operable at the time.

In Oct. of 2016, Castro was charged with second-degree murder, in connection with Gayle’s death. Police did not say how their investigation led them to the arrest.

After extensive consultation with the victim’s family, the Orange County District Attorney’s Office allowed Castro to plead guilty to manslaughter, with the understanding that he would be sentenced to 15 years in prison.

“It is hard to fathom the loss of another young man to senseless street violence,” Orange County District Attorney David M. Hoovler said. “I hope that this plea brings some measure of closure to the victim’s family.   Street security cameras have proven to be effective crime deterrents and valuable resources in the investigation and prosecution of street crimes and I encourage the City of Newburgh to ensure that all of their cameras remain operable.”

Here are this week's Top 5 news stories from the Hudson Valley

More From Hudson Valley Post