The moose's antlers were caught in the rope.

The department said the resident admitted to purposely attracting the animal which caused it to get caught in the swing.

"These homeowners told me that they enjoy watching wildlife so they put the salt lick out to attract moose and other animals," district wildlife manager Tom Davies said in a news release. "The fact that they caused the moose to suffer like it did and putting the officers in such a dangerous situation is a clear example of how irresponsible attracting wildlife to your home or neighborhood can be."

>>Read more trending stories

 "After several difficult hours in its predicament, our officers were able to subdue the moose long enough to cut the rope," the statement said. "Appearing relatively unharmed although significantly stressed from its ordeal, the moose first charged its rescuers before running off."

"It was a difficult and dangerous situation but the taser worked exactly as we had hoped," Davies said. "Tranquilization drugs were an option but considering how stressed the moose became during this precarious situation, it would have likely killed the animal."

Davies issued a future warning to the homeowners and others who try to attract wildlife to a residential area. Leaving out food, salt and other items to attract wildlife is illegal and can result in a fine.