NORTH LIBERTY, Iowa (AP) — Police have arrested a minor in connection with social media threats that caused an Iowa high school to cancel classes Friday.

The North Liberty Police Department said the person responsible for anonymous Instagram messages that threatened violence against a student and others at Liberty High School was taken into custody Friday morning.

Officials with the Iowa City Community School District told students and staff to stay home from school Friday after learning of what it called a "credible threat" late Thursday.

Investigators say they identified the person responsible with help from students and families who could be identified in the anonymous messages. They said additional information won't be released since the suspect is a juvenile.

The school, which is in its first year, will reopen Friday afternoon for extracurricular activities.