Cops have arrested and charged a suspect in connection with the fatal stray-bullet shooting of a Harlem man walking his pooch, authorities said Tuesday.

Ozjheir McClain, 19, threatened to shoot an unidentified 26-year-old male with a rifle around 2:20 a.m. June 10 near the corner of Amsterdam Avenue and 146th Street, cops said.

When the unidentified man ignored the threat and walked off down 146th Street, McClain, who lives in Syracuse, allegedly squeezed off one round, but missed his target.

The stray bullet struck 40-year-old Winston McKay, who was walking his dog, police said.

McKay, who was hit in the right leg, was taken to NYC Health + Hospitals/Harlem, where he was pronounced dead, cops said.

Cops are also searching for 20-year-old Eric Bautista, who they believe was involved in the shooting.