Conner Charles Prout (left) and John Adam Havermann (right) were charged with trespass posted property, trespass school property, disturbing school operations and disorderly conduct/disturbing the peace. (Anne Arundel County Police Department)

Two 19-year-old Maryland men were taken into custody and charged in connection with the discovery of a noose hanging on the front a middle school, a police spokesman said Friday.

Authorities said the men— Conner Charles Prout of Crofton, Md. and John Adam Havermann of Pasadena, Md. — were identified after investigators released several images taken from surveillance video footage at the school.

Callers helped the investigation, said Lt. Ryan Frashure, a department spokesman.

“Good help from the community helped to get this problem solved,” he said.

Authorities released several images taken from surveillance video footage at Crofton Middle School. (Anne Arundel County Police Department)

The noose was found by a teacher at Crofton Middle School in Crofton, Md. It was spotted on a outside light fixture just before 11 a.m. Thursday and detectives determined through surveillance footage that access was gained to the roof.

A wooden pallet was propped against a side wall and used to climb, said Frashure. The noose was hung between midnight and 2 a.m. Thursday, he added.

Prout was arrested by police and Havermann turned himself into detectives Friday night. Authorities said the pair had no known connection with the middle school.

Both were charged with trespassing, disturbing school operations and disorderly conduct/disturbing the peace, police said.