BISMARCK, N.D. (KXNET) — Police in Bismarck arrested a man after they say he broke into a house along north 11th street early Sunday morning.

It happened just before 5:00 a.m. when a woman called police saying she saw a person in her doorbell camera. The woman was out of town and told police she suspected it was her ex-husband, who was not allowed in the home. Police showed up and found Cordell Eckroth inside.

But police say Eckroth wouldn’t come out. The woman told police she changed the locks and took out a restraining order against Eckroth.

West Dakota SWAT officers stayed outside trying to get Eckroth to come out. Police say he told officers they’d have to shoot him. Eckroth had caused damage inside the home, including breaking an upstairs window.

SWAT officers then went into the home around 11:00 a.m. and arrested Eckroth.

Eckroth was treated at a Bismarck hospital for minor injuries before being taken to the Burleigh Morton Detention Center. But police say Eckroth fought with officers while they were getting him under control. He is currently being held on the charges of Burglary, Assault on a Peace Officer, Violation of a Disorderly Conduct Restraining Order, and Resisting Arrest on a felony.