A former student of Episcopal School of Baton Rouge was arrested Thursday in connection to a threat sent by text message to some students, a police official said.

Nicholas Leggio, 17, was booked on a count of terrorizing after a photo of a male brandishing a handgun in his waistband was sent from Leggio’s social media account to students at the private school, said Baton Rouge police Cpl. L’Jean McKneely.

The photo was captioned, “Some of u are alright Don’t go to school tomorrow,” according to a police report, which identified Leggio as the person in the photo.

But McKneely said police are still working to verify whether the person in the photo is Leggio, as the face is obstructed in the image.

In an email sent out to the Episcopal community Friday, head of school Hugh M. McIntosh said Leggio confirmed the threat to law enforcement but said “the post was meant to be funny.”

Leggio told police the photo was not meant to be a threat and was taken more than a year ago at a friend’s house, according to the report.

Leggio, 6615 Sheffield Ave., sent the message to Episcopal students using a group texting app, McKneely said.

No additional arrests are expected, he said.

Three different students contacted school officials about the photo.

Episcopal associate head of school Jason Hubbard confirmed Leggio is a former student who left during the ninth grade.

In his email, McIntosh wrote the school would continue with classes as normal Friday.

“Additional security will be deployed on campus as an extra precaution,” McIntosh wrote in the email. “Though we feel the issue has been adequately addressed, if you wish to keep your child home tomorrow, they will be excused.”

Hubbard said two extra guards were on campus Friday, with increased East Baton Rouge Parish Sheriff’s Office patrols in the area.