Authorities in North Carolina said a deer was released with a “stern warning” after breaking into a county courthouse and struggling with deputies.

The Transylvania County Sheriff’s Office said in a Facebook post that a deer broke into the Transylvania County Courthouse by smashing through a glass door.

“The suspect was apprehended without injury to the deputies or the suspect,” the post said.

The post included photos of deputies holding the deer down after a brief “struggle.”

“The presiding judge released the suspect on her own recognizance with a stern warning,” the post said.

Deer breaks into county courthouse in North Carolina