A 12-year-old was fatally shot by a classmate at a South Carolina middle school, officials say

A 12-year-old was fatally shot by a classmate at a South Carolina middle school, officials said on Thursday.

The victim has been identified as Jamari Cortez Bonaparte Jackson. His family said Thursday they were "devastated" by the tragedy, according to a statement from a family spokesperson.

The suspected shooter, also 12, was arrested and charged with and other firearm charges in the shooting at Tanglewood Middle School in Greenville, according to the Greenville County Sheriff's Office.

No other injuries related to the shooting were reported, the sheriff's office said in a statement.

Around 12:30 p.m. Thursday, a school resource officer called for emergency backup after hearing gunshots at the school, officials said. Later, authorities learned that a student had shot another student and that the students knew each other, the sheriff's office said.

After the shooting, the suspect ran away from the school, and deputies found him around hiding under a deck at a nearby , according to police. They also recovered a weapon during the arrest, the statement said.

"My heart breaks for this young boy's family and my prayers are with them tonight," sheriff Hobart Lewis said in the statement, referring to the victim.

"Additionally, I will be praying for the other young boy who pulled the trigger and his family. I can not fathom what would cause xjmtzywsomeone to do this to another human being and especially at that age, but I know it's a situation where we all need to turn to God."

The motive of the shooting and how the suspect obtained the gun remain under investigation, the sheriff's office said. The Greenville County Coroner will release more about the victim on Friday, the office added.

In addition to the murder charge, the suspect faces other accusations including possession of a weapon during a violent , possession of a firearm on school property and unlawful possession of a weapon by a person under the age of 18, the sheriff's office said.

The suspect will be sent to a juvenile justice center in Columbia, South Carolina.

The sheriff urged parents to talk with their and engage with them to ensure their own safety as well as others.

"Check their belongings and ensure they don't have anything that could be a danger to themselves or anyone else. It truly takes a village and we need everyone's investment," Lewis said.

Tanglewood Middle School serves about 780 students in Grades 6 through 8, according to its website.