A special education teacher and a student at a San Bernardino, Calif., elementary school were shot to death Monday by the teacher's estranged husband, who then took his own life. Another student was wounded in the attack.

CNN reports that the shooter, Cedric Anderson, 53, walked into a classroom at North Park Elementary School with a revolver and opened fire. Karen Elaine Smith, 53, a teacher at the school and Anderson's estranged wife, was killed.

The two students struck by gunfire were standing behind Smith, police say.

Jonathan Martinez, 8, died at Loma Linda University Medical Center. The other student, a 9-year-old boy, was reported to be in stable condition.

Police do not believe the two children were targeted; they happened to be near the teacher.

At the time of the shooting, the classroom had 15 students from grades one through four, along with two adult aides.

Police Anderson signed in at school's front office before going to the classroom. He said he wanted to drop something off with his wife.

After the shooting, North Park students were evacuated and reunited with their parents at nearby Cajon High School.