A 51-year-old man has been charged in connection with the death of a beloved delivery worker in Queens, NYPD officials said.

Authorities said Glenn Hirsch was arrested Wednesday and charged with murder and two counts of criminal possession of a weapon in connection with the death of 45-year-old Zhiwen Yan.

Yan was struck and killed by a stray bullet around 9:30 p.m. on April 30 while delivering food in Forest Hills.

Authorities said the round was fired near the intersection of 108th Street and 67th Drive, an area where residents said crime rarely occurred.

"It's kind of a surprise. You don't really hear that kind of stuff in this neighborhood so yeah, it's a complete shock," resident James Park told NY1 last month.

Others described Yan as a hard worker who was well-known in the neighborhood.

"Anytime you'd pass he'd say, 'Hello, my friend.' Snow, rain, hurricane - he was out delivering. He was the nicest guy. Hardest working guy in the neighborhood," resident Philip Jacoby said shortly after Yan's death.

Police have said Yan was not the intended target of the shooting.

In a translated statement provided by her attorney, Yan's wife, Eva, said she and the community are "relieved that someone has been arrested."

"We are grateful to the NYPD and have full confidence that the Queens District Attorney will bring justice to Zhiwen Yan, a loving an kind husband, father, son, friend and community member," she said.