This isn't a typical cat-stuck-in-tree-branch scenario, but the fire department was still called in to save a pet.

Rocco, a small dachshund, got stuck inside a tree trunk in a Salem, Kentucky, cemetery.

Two off-duty Kentucky State Troopers were mowing the cemetery lawn Thursday when they heard a dog barking in 'a wooded area', according to state police.

Scroll down for video

Rocco, a dachshund, peeks his head through the trunk of a tree in Salem, Kentucky. He had climbed into a nearby groundhog hole and found his way up through the tree trunk, where he got stuck

Kentucky State Police Sergeant Michael Williams and Trooper Gerick looked around for several minutes they found Rocco trapped inside a tree trunk, his head sticking out of a hole.

Rocco had apparently climbed into a nearby hole dug by a groundhog and found his way up through the tree trunk, the troopers told WPSD. That's where he became stuck.

Williams and Gerick called in the Salem Fire Department when they couldn't rescue the small dog themselves, state police said in a Facebook post.

While they waited for the fire department, the officers fed and watered the pooch.

When firefighter Daniel Newcomb finally arrived, he used a chainsaw to cut out a section of the tree and free Rocco.

The dog was then safely returned to his owner, Tammy Reed.

'The opening in the tree was made larger, should Rocco or another dog find themselves inside the tree again,' the Kentucky State Police said in their social media post.

Firefighter Daniel Newcomb cuts a tree to free Rocco, who is trapped inside. Two state troopers called in the fire department when they couldn't get Rocco out themselves

Charlotte Keen, pictured, fed and watered Rocco while she and the state troopers waited for the Salem Fire Department to come help