Two people are dead Tuesday following a shooting outside a theater in Richmond, Virginia, where a high school graduation ceremony had recently concluded, causing attendees to flee in panic and worry for their loved ones, authorities say.

A 19-year-old suspect was taken into custody and will be charged with two counts of second-degree murder, Interim Richmond Police Chief Rick Edwards said at Tuesday night news conference. A second individual who was in custody earlier was determined to not be involved in the shooting.

Edwards also confirmed that an 18-year-old and a 36-year-old were killed in the incident. Five others were wounded in the shooting, with one victim sustaining life-threatening injuries.

Officers inside Altria Theater, where the graduation ceremony for Huguenot High School was taking place, heard gunfire around 5:15 p.m. and radioed to police stationed outside, who found multiple victims, Edwards said. The sudden gunfire caused graduation attendees to frantically flee, The Associated Press reported. Cries could be heard and people were seen holding onto their children in the chaos.

“As they heard the gunfire, it was obviously chaos,” Edwards said. “We had hundreds of people in Monroe Park, so people scattered. It was very chaotic at the scene.”

At least 12 others were treated at the scene or at a hospital for injuries unrelated to the shooting. Police said two people were treated for falls; one child was hit by a car and sustained non-life-threatening injuries; and 9 people were treated for minor injuries or anxiety.

The identities of those injured and the suspect were not immediately released but police believe the suspect knew one of the victims.