TOWNVILLE, S.C. (CBS) — Two students and a teacher were shot Wednesday at a South Carolina elementary school.

Moments before, the suspect a teenage killed his father has his home. The suspect then went to a nearby school and opened fire.

Within minutes, the suspect was taken into custody.

One student was shot in the leg and the other in the foot, said Capt. Garland Major with the Anderson County sheriff’s office said. Both students were male. The female teacher was hit in the shoulder.

Anderson County Coroner, Greg Shore said the two students appear to not have life-threatening injuries, CBS 2’s Suzanne Le Mignot reports.

Both were airlifted to a pediatric trauma center.

A hospital official said a teacher and a child brought to AnMed Health are both in good condition.

A 6-year-old child was airlifted to Greenville Memorial and is in critical condition, spokeswoman Sandy Dees confirmed with The Associated Press.

Anderson County emergency services director Taylor Jones said all other students at the Townville Elementary School were safe following the shooting. The students were bused to a nearby church, where parents came to pick them up.

“We have searched the school, our SWAT team has been engaged today,” Jones said. “We do not feel like we have got any other shooters or anyone else involved. Everything appears to be safe.”

Police swarmed the school after the shooting.

Workers comforted people at the school, which is in a very rural part of South Carolina.

Townville Elementary had about 300 students in its pre-kindergarten to sixth-grade classrooms last year, according to its annual state report card last spring.

It is located in a rural area near Lake Hartwell, close to interstate 85 and the Georgia state line.

The school will be closed the rest of the week.

Watch & Listen LIVE