A Southern California teenager was arrested after he allegedly threatened to kill students at his high school and then himself, police said Friday.

Deputies got a call about 2 p.m. Thursday about a sophomore at Adolfo Camarillo High School threatening to shoot and kill another student earlier that day, according to the Camarillo Police Department.

Top News Photos of the Week

After deputies talked to the 15-year-old boy and his parent, they found out the boy told a student he planned to "shoot up the school" and then take his own life, officials said.

2014 SoCal Images in the News

The frightened student who was threatened helped police arrest the teen.

"Another student threatened to shoot him and come back and possible shoot up the school," Camarillo Police Detective Julie Novak said. "He immediately was very smart and Immediately reported the incident not only to school officials but to law enforcement ."