BROOKSVILLE — A SWAT team finally took a person into custody after an hours-long standoff with deputies early Sunday morning, according to the Hernando County Sheriff's Office.

About 3:13 a.m., the agency responded to a home on Cappleman Loop to check on someone who was "possibly considering self-harm," according to a news release.

When they arrived, the person shot a firearm towards the front door, the agency reported. No one was hit.

Deputies called for backup as the person created a barricade.

Nearly four hours later, with both the special weapons and tactical team and the Crisis Response Team on site, deputies got inside the home and took the person into custody.

The Sheriff's Office did not yet identify the person.

Stay with tampabay.com for updates.