A Boulder officer used a stun gun to shock a man last weekend after he threw a frying pan at her, police said.

Boulder police said the officer responded to a report of a disturbance around 11:45 p.m. Sunday in the 600 block of 22nd Street. A person who lived in another apartment in the same building had reported hearing a fight that went on for roughly half an hour and involved lots of yelling and banging.

When the officer arrived, she found a man sitting on a half-wall outside the building, police said. He had a frying pan of food next to him and ate food from the pan as he talked to her. The man explained to the officer that his marijuana was inside the apartment, and he needed it, police said.

The officer told the man that the residents of the apartment did not need to let him in. The man got angry, clenched his fists and yelled at the officer to get out of his face. He then raised the frying pan above his head in a threatening manner, police said.

The officer drew her Taser, and the man threw the frying pan at the officer, police said. The officer deployed her Taser and told the man to get on the ground. Police said the man complied with the officer but continued to yell and told the officer she should use the Taser again on him.

James Dobson, 39, a transient, was arrested on suspicion of reckless endangerment and disorderly conduct.