A 17-year-old student at a Carmel Valley high school was arrested this week after allegedly posting online comments regarding a school shooting, a San Diego police official said Tuesday.

The teen was arrested Monday on campus at Canyon Crest Academy and taken to Juvenile Hall, Acting Capt. Paul Phillips said.