A 15-year-old California girl died Monday after she was attacked by a man outside her high school in what police believe was a random act of violence.

The Stockton Police Department announced on Monday in a Facebook post that 52-year-old Anthony Gray, was arrested, charged and booked into the San Joaquin County Jail.

The stabbing took place near the entrance of Stagg High School in Stockton at around 11 a.m. local time. Stockton is located about 80 miles east of San Francisco and 50 miles south of Sacramento.

"Detectives believe this appears to be a random act and they are trying to determine why this student was targeted," the police department said in a statement.

Police said on Tuesday that Gray and the student did not appear to know each other. The Stockton Unified School District said the student was taken to a hospital and later pronounced dead.

"It has been a sad day at SUSD," the school district said on Monday. "Our condolences go out to the student’s family, Stagg Family and our community."

School District Superintendent John Ramirez Jr. said at a news conference that the assailant drove to the high school, somehow entered through the gate, and then attacked the student before security and staff members could intervene

"As a parent, I want all the parents to know that the safety and security of our students are of the utmost importance to us," Ramirez said at the conference.