CROWN HEIGHTS - A suspect is in custody after the shooting of an NYPD officer in the leg early Wednesday evening in Crown Heights.

The shooting happened in the parking lot of a White Castle at Utica Avenue and Empire Boulevard at 5:01 p.m.

Officials say that Officer James Li, 26, and his partner saw two men sneak on to the back of a B46 bus. The officers stopped the bus and pulled both men off. That's when they say Rashun Robinson took off. 

Robinson allegedly then shot at both officers from a distance of about 10 feet, striking Officer Li. 

The officer was taken to Kings County Hospital in stable condition.

Police say Robinson is wanted on a warrant for a drug-related charge in Pennsylvania. He's in police custody.