The Richland County Sheriff's Department told WIS-TV 18-year-old Morgan Roof was arrested after an administrator at A.C. Flora High School had contacted a school resource officer.
RELATED: Police dash cam shows moment of Dylan Roof's arrest
[Ads /]
Roof is charged with marijuana possession and two counts of carrying weapons on school grounds. A judge set her bond at $5,000. She was screened for a public defender. She is not allowed to return to the school.
Investigators said Roof also posted a Snapchat that alarmed fellow students but was not arrested for it.
RELATED: Dylann Roof's Lawyers File Challenge to Death Penalty
ABC News reports the snap read, "Your walking out of the allowed time of 17 minutes, they are letting you do this, nothing is gonna change. what do you think it's gonna do? I hope it's a trap and y'all get shot. We know it's fixing to be nothing, but black people walkin out anyway."
School principal Susan Childs posted a letter to parents on the school's Twitter page explaining what occurred while students walked out to remember the 17 killed in the Parkland, Florida, Valentine's Day school shooting.
RELATED: Florida school shooting suspect Nikolas Cruz formally charged with 17 counts of murder
[Ads /]
Dylann Roof was convicted of fatally shooting nine African-American parishioners at a Charleston church in 2015 and was sentenced to death.
The Associated Press contributed to this post.