An hourslong standoff in a Hastings mobile home park ended early Friday with a man arrested and two children who were with him unharmed.

Police arrested the man around 2:20 a.m. after SWAT team members stormed a residence on Radford Road in the Three Rivers Mobile Home Park. They also rescued a 4-year-old who was with the man, according to a statement from police.

Authorities had rescued a 13-year-old several hours earlier, police said.

Events unfolded around 11:30 a.m. Thursday when police were called to the home about a disturbance. A woman and two children left the residence, but the man barricaded himself inside with the other two children, police said.

As the situation unfolded, Hastings police warned the public to keep away from the area and asked anybody who lived or worked nearby to shelter in place. A few residents were evacuated from the area, police said.

The South Metro SWAT team and hostage negotiators were called to the scene. A second SWAT team responded later in the day. A dozen officers were treated for heat-related illnesses at the scene and three were hospitalized, police said.