Rondell Pinkerton, 17, was taken into custody Tuesday and charged with murder and criminal possession of a weapon in the death of 4-year-old Lloyd Morgan, who was killed when gunshots erupted in the park around 9:45 p.m., NBCNewYork.com reported.

“We are speaking to a 17-year-old young man who admits to being at the scene of the shooting,” NYPD Commissioner Raymond Kelly said at a press conference Tuesday. “[He] admits to shooting rounds at that location. He states it was self-defense because he was being shot at.”

Detectives believe the shooting involved four members of one group against an unidentified individual, NBCNewYork.com reported.

Mourners attend a rally on July 23 at the Forest Houses public housing development in New York City after four-year-old Lloyd Morgan was shot and killed in a gun battle during a basketball tournament.

Another person allegedly involved in incident, Courtney Kelly, 26, was charged with criminal possession of a weapon. His role in the shooting wasn't immediately clear, police said.

Morgan was shot in the head when gunfire rang out after a barbecue and charity basketball game at a court a few yards away from the playground where he was playing.

Police say there may have been as many as three or four guns fired that night. Kelly said that investigators had not yet determined whether Pinkerton had fired the fatal shot, or if the bullet had come from someone else shooting at the time.

“You don’t even understand how this affects someone with a boy, let alone a small boy,” Lloyd's mother, Shianne Norman, told PIX11 through tears. “No one expects their child to be shot at four.”