This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A student was wounded in a shooting Friday morning at a high school in Ocala, Florida, the Marion County Sheriff’s Office said, shortly before students were to walk out as part of a national protest against gun violence.

The student was shot in the ankle at Forest High School and transported to a hospital with a wound not considered life threatening, said Kevin Christian, Marion Public Schools spokesman. The victim is 17.

A school resource officer heard a loud bang at 8:39 a.m., Marion County Sheriff Billy Woods told reporters.

Three minutes later, the officer took a 19-year-old suspect — who’s not a student — into custody without incident, Woods said.

The motive is unclear for what’s the 20th US school shooting this year.

“It’s a shame what society has come to in that we even have to be here on a school campus,” Woods said. “Society has changed since I was in school. … We as a whole need to do something. My emotions are running rampant.”

Woods and school officials said the resource officer’s quick response and active shooter protocols at the school helped save lives.

Jake Mailhiot, 16, a junior, posted a photo to social media of desks, chairs and other furniture piled high over the door to the classroom where he was studying psychology. The barricade was meant to keep out an active shooter.

“I didn’t hear anything other than people from other classrooms crying,” he said.

Mailhiot and other students helped a teacher block the door, he said. They were on lockdown for about an hour.

Authorities asked residents to avoid the area of Forest High, which was surrounded by emergency vehicles and buses transporting students away from the scene.

As Forest High students were being bused to First Baptist Church of Ocala to be reunited with their parents, students at some 2,500 schools around the country were walking out of their classrooms as part of the National School Walkout against gun violence.

“The fact that it happened on this day, in a way, reinforces what we are trying to get across,” said Ryan Servaites, a high school freshman in Parkland, Florida, where 17 students and teachers were gunned down in February. “This happens. It is an issue. We see more people dying. Children are being hurt.”

In a walkout in New York City, Stuyvesant High School sophomore Grace Goldstein, 16, lamented that her generation has become desensitized to gun violence.

“We’re very glad that no lives were lost,” she said of the Ocala shooting. “We’re incredibly grateful for that. Our reaction was, of course, this is how our country works. The person who was shot today is on the list of the people who we’re fighting for.”

Forest High was to participate in the walkout, according to a Thursday post on the Ocala school’s Twitter account.

Instead, aerial news footage from the scene showed a sea of students gathered outside a steepled church to meet their parents and officers, guns at their side, clearing buildings on the sprawling Ocala campus.

School walkouts were canceled districtwide in Marion County after the shooting, according to school board member Nancy Stacy.

The Ocala shooting comes more than two months since the massacre at Marjory Stoneman Douglas High School in Parkland near Fort Lauderdale. Parkland students are participating in the national walkout — which is also the 19th anniversary of the shooting deaths of 13 people at Columbine High School in Colorado.

“We won’t stop,” Servaites told CNN. “This is why. It is, in a way, the world slapping us in the face, but we just have to look at it as a wake-up call.”

Forest High, which was ranked as one of the best high schools in the nation by U.S. News & World Report, has about 2,100 students. Ocala is about 65 miles northwest of Orlando.