UPDATED: A teacher and an eight-year-old student were killed in a shooting at North Park Elementary School in San Bernardino, California, according to law enforcement officials.

According to several reports, the shooter, Cedric Anderson, 53, entered a classroom at about 10:30 a.m. and opened fire on his estranged wife, Karen Smith, 53, who was killed. He then took his own life.

Two students behind Smith were also shot, one of which was eight-year-old Jonathan Martinez, who was airlifted to Loma Linda Medical Center, where he was later pronounced dead. A nine-year-old student was also transferred to the hospital and reportedly remains in stable condition.

Police Capt. Ron Maass said at a news conference that authorities do not believe that the 15 children inside the classroom were specific targets for Anderson. The classroom was for special-needs students, police said. Anderson and Smith have been separated.

The students were taken to California State University San Bernardino for safety.

The shooting comes less than two years after the 2015 San Bernardino terror attack, in which 14 people were killed and 22 others were injured. It also comes as San Bernardino continues to struggle with increasing violence. According to the San Bernardino Sun, the city saw 62 homicides in 2016, marking its deadliest year since 1995.