NATOMAS, Calif. (KTXL) — The Sacramento Police Department said in a tweet that a hostage situation during which a suspect with a sword barricaded themself inside a home with others ended after the suspect was shot by police.

Police said SWAT and crisis negotiators also responded to the scene on Dragonfly Circle.

According to police, the suspect was not allowing the other people in the home to leave.

The tweet stated that the suspect was taken to a nearby hospital for treatment and no officers were injured.

A large police presence will remain in the area, according to police.

The public is being asked by police to avoid the area.