The deputy waited a short distance away in hopes that the man would turn it down again, but when he didn't deputies returned and confronted the now-agitated man, Harper said.
The man threatened to sic his two pitbulls on deputies and then slammed the door in their faces. Deputies then saw him standing in a front room armed with a rifle.
SWAT officers were called when he wouldn't come out, Harper said. Authorities spent most of the night attempting to communicate with the man before finally firing tear gas into the apartment, which forced him out about 7:40 a.m.
Authorities took the man into custody while Davis County Animal Control removed the dogs.
The man was arrested on suspicion of assaulting a peace officer, intoxication, possession of a weapon while intoxicated, possession of a weapon by a restricted person, disorderly conduct and resisting arrest.
The man's neighbors were told to take cover in the lower portions of their home while the nearly nine-hour standoff played out.