LEWISTON — Police say the student threat to Lewiston High School this week was a hoax. Classes remain canceled Wednesday, but the building will be open for afternoon sports and adult education.

Police say the 17-year-old student will be charged with the juvenile offense of terrorizing, a Class D crime.

The student’s name has not been released.

The school was closed Wednesday after a student posted on social media Tuesday night that a friend would be “shooting up the school” the next day.

“I hope he kills you all,” the post added.

Lewiston police learned of the threat Tuesday night after someone saw it on social media and contacted them.

Soon after, Webster decided to cancel Wednesday classes and shut down the school. He tweeted late Tuesday about the threat and the school’s shutdown, after he informed administrators and staff of his decision.

On Wednesday morning, Webster tweeted that police have determined the student threat was a hoax.

“While LHS and LRTC classes remain canceled today, the building is now accessible to staff,” he wrote. “Afternoon sports and evening activities will continue as scheduled.”

Webster said the school system sometimes gets threats, but this one was unusual because it was an open social media message that was quickly and widely disseminated.

“We know that students in other towns became aware of it. I got a call from a neighboring superintendent, for example,” he said. “So we were put in the position of having to make a decision before the police could complete an investigation.”

The investigation showed there was no friend planning an attack at the school. The student made it up, Webster said.

The student has been suspended for up to 10 days and could face additional punishment if brought before the school committee.