AMHERST, N.Y. — A 16-year-old Sweet Home High School student has been charged with making a terroristic threat, Amherst Police said Friday evening.

The charge is a Class D felony. The student, who has not been named, was taken to Erie County Family Court for arraignment.

On Tuesday, the Amherst Police Department said it was investigating a threatening photo that was sent Monday to several students at Sweet Home High School.

The photo depicted a man with a gun strapped on his shoulder/back, saying "Don't come to school on the sixth."

Sweet Home Superintendent Tony Day said earlier this week that the image was shared in a group chat on Snapchat to about 30 students. He added that the school's administration became aware of the image on Monday evening. 

Sweet Home High School posted an update on its website Tuesday evening saying police have identified the individual in the image, along with the person responsible for adding the caption to the photo.

RELATED: Schools investing in threat assessment, management

RELATED: Albion Middle School investigating threatening messages

RELATED: Amherst Police: No threat found at Sweet Home High School