A third-degree murder charge has been dropped in the case of a 17-year-old boy accused of accidentally shooting and killing a man while playing with a gun in a Lancaster County home.

Court documents also indicate a charge of manslaughter previously filed against 17-year-old Antonio Acosta was also withdrawn.

In connection with the same shooting, which occurred July 28, the Lancaster District Attorney’s Office said it has charged a 17-year-old with involuntary manslaughter, receiving stolen property and persons not to possess firearms. The latest charges were filed in juvenile court, so the district attorney is forbidden by law from identifying the juvenile.

At 8 p.m. July 29, police were called to the intersection of North Third and Walnut streets in Columbia, where it was reported that a man — 19-year-old Nicholas Mills — had been shot inside the house, and collapsed outside in the street.

Mills later died of his wound.

Acosta admitted to the shooting, but told officers that it was an accident.

“I didn’t mean for this to happen. I’m sorry" he told police, according to a previous PennLive report.

The district attorney’s office said that investigators were able to talk with key witnesses. No new information was revealed regarding who fired the shot, but witnesses confirmed that an adult told the 17-year-old not to play with the gun, and the teen had removed the magazine from the weapon before the shooting occurred, the office said.

Cellphone evidence also was examined, officials said.

That new information led to the decision to withdraw the murder charge, officials said.

“When the original charges were filed, our office indicated an amendment to charges was very possible; the investigation was ongoing and the police were aware that there was a lot of information yet to be obtained,” officials said in the news release.

The case now goes to juvenile court, although the district attorney is considering whether to petition for the case to be tried in criminal court.