GREENVILLE, SC (WSPA) – One student at Southside High School accidentally shot themselves in the school cafeteria Friday morning and two students will be charged after the gun was brought to the school.

The Greenville County School District says the student was shot at 8:40 a.m.

The student was conscious and talking when they were taken to the hospital by EMS. They don’t think the injury is life threatening.

The Sheriff’s Office said during Friday’s news conference that the gun was inside the backpack of another student and it fired and struck that student.

Another student, 17-year-old Braylin Scott was arrested and charged with Unlawful Carrying of a Weapon, Carrying a Weapon on School Property, and Disturbing School. According to warrants, Braylin took the gun after the accidental shooting.

The injured student will be charged with the same charges, according to deputies.

Police set up a perimeter, searched all students and placed Southside High School on lockdown.WATCH: Active shooter video shown to Greenville Co. students and employees

All students were secured inside the building, according to deputies.

Blythe Elementary, Grove Elementary and MT Anderson Support Center are all off lockdown.

Thomas E. Kerns Elementary administrators were told by law enforcement they are cleared, but have chosen to stay on partial lockdown and not allow students out for recess.

Deputies did a complete search of the school, including the rooftops.

School officials say there is no longer danger or concern.

They will dismiss in a manner that allows full accountability. They want to make sure every child is accounted for.

The school says Southside High will dismiss students now to parents or guardians with proper credentials.

Parents will need to enter through the school’s main entrance on Frontage Road.

The school will then dismiss student drivers.

Once that process is complete, bus riders will dismiss.

The school is asking that parents follow law enforcement direction and have patience.

There will be no buses transporting Southside High students to other locations including all Career Centers and Fine Arts Center this afternoon.

The school district says they have school resource officers at all high schools and middle schools.

They partner with the Greenville County Sheriff’s Office and six municipal police departments to provide roving patrol officers to all elementary schools.

They say they do not have permanent metal detectors installed in the schools.

They have portable detectors that can be used when and if they are necessary.