BROOKLYN, N.Y. -- A 19-year-old man has been arrested in connection to the shooting deaths of two men who were gunned down Monday inside a Brooklyn deli, according to police.

Malachi Kirkland was taken into custody by police at the scene of the incident and charged with murder and attempted murder Tuesday, authorities said.

Police said the shooting occurred around 11:30 p.m. Monday night inside a deli on Loring Avenue in East New York. Upon arriving to the scene, police discovered a 21-year-old male with a gunshot wound to the head, authorities said.

The victim, who police later identified as Sulaiman Odunsa, was pronounced dead on the scene by EMS.

A 23-year-old male with a gunshot wound to the neck was also found on the scene, police said. He was transported to Brookdale Hospital where he was pronounced dead. Police later identified him as Amir Green.

A third victim, an 18-year-old male with a gunshot wound to the torso, was also taken to Brookdale Hospital, where he was listed in critical condition but stable condition, police said.

The deadly shooting was one of 38 shootings that happened over the holiday weekend across the city, according to police. There were 52 victims in total -- nine of whom died from their injuries.

According to the NYPD, three people were killed July 4, four people were killed on the July 2 and two were killed on July 1. So far this year, there have been 213 reported homicides across the five boroughs. That's slightly less than this time last year when there were 237 homicides.