A teenager with a handgun opened fire at an elementary school in South Carolina on Wednesday afternoon, not long before authorities say they found his father shot to death in a home nearby.

Police said the teenage shooter, who they did not identify, shot two male students and a female teacher at Townville Elementary School, located about 40 miles west of Greenville, S.C., before being quickly taken into custody by authorities.

One of the students was shot in the leg and the other in the foot, while the teacher was struck in the shoulder, said Capt. Garland Major of the Anderson County Sheriff’s Office. All three were taken to hospitals from the scene, he said during a briefing Wednesday. One of the students was reported to be in critical condition.

Major said that the shooter was taken into custody in a matter of minutes and that authorities believe that there are no other suspects involved.

He emphasized that authorities were in the early hours of the investigation, saying they were still trying to figure out details about where the shooting occurred. The school has no resource officer, the superintendent said Wednesday, but it has security cameras and an airlock system requiring people to be buzzed in.

Major also brought up and dismissed potential motives, saying that authorities did not believe there were any racial factors, noting that the suspected shooter and the three injured people were all white. He also said police did not believe terrorism was a factor.

The burst of violence at locked down Townville Elementary, a school of about 285 students, sending terrified parents hurrying to a local church to pick up their children and causing officials to cancel classes for the rest of the week. The school’s picture day had originally been scheduled for Friday.

“We are heartbroken about this senseless act of violence,” Joanne Avery, the school superintendent, said at the briefing. The school district does training to prepare for active attacks, officials said.

[Experts offer tips for what to do to stay safe during active shootings]

Authorities say they are still working to determine if any of the people injured at the school were targeted or if any of them were connected to the shooter, but said that they had not found any relationships by Wednesday night.

The suspected shooter is home-schooled and not a student in the school district, the sheriff’s office said.

In addition, investigators are also looking into what they called a related homicide after they found the Jeffrey D. Osborne, the teenage attacker’s 47-year-old father, dead at a home about two miles from the school.

Osborne’s family called 911 a short time after the school shooting, and police arrived and found him dead from a gunshot wound, Greg Shore, the Anderson County coroner, said at the same briefing.

Shore said it appeared the man’s son was the shooter who went on to the school, but he did not specifically say if they believe the teenager shot and killed his father first.

Shore said the accused shooter’s grandmother said she received a call at 1:44 p.m. from the teenager. She said he was crying and upset and could not understand what he was saying, so she and the boy’s grandfather went to Osborne’s house, expecting to find their grandson as well. That’s when they found their son dead.

Police went to the school when a teacher called 911 at about 1:45 p.m. to report an armed attacker on school grounds, said Taylor Jones, Anderson County’s emergency services director.

Jones praised the quick response of law enforcement officials, who were able to take the attacker into custody in a matter of minutes and without incident, saying that “lives were saved because of our responders being so well trained.”

A firefighter — later identified as Jamie Brock, a 30-year-veteran of the Townville Volunteer Fire Department — apprehended the shooter, police said.

Gov. Nikki Haley (R) said in a statement Wednesday that as authorities investigate the shooting, she asked people in the state to join her and her husband “in praying for the entire Townville Elementary School family and those touched by today’s tragedy.”

[When even preschoolers must prepare for an active shooter]

Parents were told to pick up their children at a nearby church. When some arrived, they did not know what was going on other than seeing first responders and police around the building.

“I was really scared and thought something bad had happened to my son,” said Kelli Collins of Townville, who has a son in preschool there. “The feeling was pretty indescribable. This is his first year of school. It was very scary, and my heart was pounding.”

Collins said when she eventually got to her son, “I grabbed him and wouldn’t let go.”

Tony Walker, a 32-year-old youth pastor at Gethsemane Baptist Church in Starr, S.C., said he spoke with a mother whose child was on the school’s playground and saw the shooter. Walker said the mother told him that her son said, “‘Mommy, as soon as I saw him, I knew he was a bad guy.'”

The neighboring Oconee County Sheriff’s Office said that at the request of the Anderson County Sheriff’s Office, it sent deputies to respond to a reported active shooter situation at the school at around 1:44 p.m.

“I have spoken with Sheriff John Skipper in Anderson County and have offered to make available any resources and assistance from the Oconee County Sheriff’s Office that he needs as the investigation continues,” Oconee County Sheriff Mike Crenshaw said in a statement.

In live video feeds of the scene, a number of police cars and law enforcement officials could be seen gathered around the school.

Townville Elementary School serves about 280 children from preschool through sixth grade, according to state data.

About three-quarters of its students are considered economically disadvantaged, meaning they receive Medicaid, food stamp or welfare benefits, are homeless or migrant students or are in foster care, according to the school’s 2015 state report card.

Justin Campbell in Townville and Emma Brown in Washington contributed to this report.

[This post, first published at 3:05 p.m., has been updated repeatedly.]</s>Townville Elementary School pupils on a school bus taking them to Oakdale Baptist Church after a shooting Wednesday at the school.

Katie McLean / The Independent-Mail via AP</s>Official: 2 students, 1 teacher wounded in shooting at South Carolina school; teen in custody

Official: 2 students, 1 teacher wounded in shooting at South Carolina school; teen in custody Copyright ��� 2016 The Associated Press. All rights reserved. This material may not be published,broadcast, rewritten or redistributed..</s>Two students and a teacher have been wounded and flown to hospitals after a shooting at a South Carolina primary school, according to a US law enforcement officer.

Speaking on live television, the unidentified officer said all other students at Townville Elementary School were safe following the shooting.

The officer added that parents are being told to pick up their children at a nearby church.

The school is located near the Georgia state line.</s>TOWNVILLE, S.C. — A teenager opened fire at a South Carolina elementary school Wednesday, wounding two students and a teacher before the suspect was taken into custody, a law enforcement officer said.

Anderson County Coroner Greg Shore told the Anderson Independent Mail that authorities were responding to a death "believed to be related" to the school shooting about 1 ½ miles away.

Shore also said the students do not appear to have life-threatening injuries.

The unidentified officer who spoke to reporters on live television said all other students at the Townville Elementary School were safe following the shooting and that parents are being told to pick up their children at a nearby church.

Television images showed officers swarming the school. Some were on top of the roof while others were walking around the building. Students were driven away on buses accompanied by police officers.

The school is in a rural area near Lake Hartwell, which is located near Interstate 85 and the Georgia state line.</s>TOWNVILLE, S.C. (AP) — A teenager opened fire at a South Carolina elementary school Wednesday, wounding two students and a teacher before the suspect was taken into custody, authorities said.

Anderson County Coroner Greg Shore told the Anderson Independent Mail that authorities were responding to a death "believed to be related" to the school shooting about 1 ½ miles away.

Shore said the students do not appear to have life-threatening injuries.

Anderson County emergency services director Taylor Jones told reporters that all other students at the Townville Elementary School were safe following the shooting. The students were bused to a nearby church and reunited with their parents. They hugged and kissed.

Jamie Meredith, a student's mother, said some of the children went into a bathroom during the shooting.

"I don't know how they knew to go in the bathroom, but I know her teacher was shaken up. I know all the kids were scared. There was a bunch of kids crying. She didn't talk for about 5 minutes when I got her," she told WYFF.

Television images showed officers swarming the school. Some were on top of the roof while others were walking around the building. Students were driven away on buses accompanied by police officers.

All of the roads to the school have been blocked off. The school is in a very rural part of the state and surrounded by working farms.

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.

The rural town is located about 110 miles northeast of Atlanta along Interstate 85 near the Georgia-South Carolina state line.</s>Three people were injured in a shooting on a South Carolina elementary school Wednesday.

At approximately 1:44 EST, an unidentified shooter entered Townville Elementary School in Townville, South Carolina.

Two elementary students were injured in the shooting, as well as one teacher. All three were taken immediately from the premises, with one airlifted to the Greenville Health System Emergency Trauma Center by helicopter. Armed officers shuttled the remaining children and faculty to a nearby Baptist church off of Highway 24.

Details of the shooting are still uncertain. The suspect, a local teenager, has been apprehended by state police.

The coroner for Anderson County commented to an NBC affiliate that the shooting may be linked to a murder in a home less than five miles from the school. This has yet to be confirmed.

This story is currently ongoing, and more details will be added as they are released.</s>TOWNVILLE, S.C. (AP) — Authorities: School shooter apparently shot his father to death before rampage; 2 students, teacher wounded .</s>TOWNVILLE, S.C. — A law enforcement officer says two students and a teacher have been wounded and flown to hospitals after a shooting at a South Carolina elementary school.

Speaking on live television, the unidentified officer said all other students at the Townville Elementary School were safe after the shooting Wednesday and that parents are being told to pick up their children at a nearby church.

The school is located near the Georgia state line.

Check back with Arkansas Online for updates on this developing story.</s>TOWNVILLE, S.C. — The Latest on the shooting at an elementary school in South Carolina that left two students and a teacher wounded (all times local):

A coroner says that the injuries of two students from a shooting at a South Carolina elementary school do not appear to be life-threatening.

Coroner Greg Shore gave the information to the Greenville News and Independent Mail.

A law enforcement official has said the shooting happened at the Townville Elementary School on Wednesday and that a teen suspect is in custody. He says all other students are safe and have been evacuated to a nearby church.

A law enforcement officer says that a shooting at a South Carolina elementary school has left two students and a teacher wounded.

The unidentified officer says the shooting took place at the Townville Elementary School in Townville, South Carolina, and that all other students are safe and being evacuated to a nearby church.
A shooting at an elementary school in Townville, South Carolina, leaves two students and a teacher wounded. Police take the teenage suspect into custody. Authorities find the shooter's father dead. One of the students dies two days later.