A tiny pet dog found itself in a spot of bother, prompting a rescue effort from local firefighters.

Rocco, a small dachshund, became stuck inside a tree trunk in a Salem, Kentucky, cemetery after climbing into a nearby hole dug by a groundhog, according to Daily Mail.

The dog was spotted by two off-duty Kentucky State Troopers who were mowing the cemetery lawn when they heard a barking sound in "a wooded area", according to state police.

Kentucky State Police Sergeant Michael Williams and Trooper Gerick spent several minutes looking around before finding Rocco trapped inside a tree trunk with his head sticking out of a hole.

Advertisement
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. Photo/AP
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. Photo/AP

When the two officers couldn't rescue the small dog themselves, they called upon the Salem Fire Department.

The pooch was fed and watered by the officers until help arrived.

Firefighter Daniel Newcomb used a chainsaw to cut out a section of the tree and free Rocco before returning him safely 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.

Rocco is pictured safely with his owner Tammy Reed after being rescued from the tree trunk. Photo/AP
Rocco is pictured safely with his owner Tammy Reed after being rescued from the tree trunk. Photo/AP

- With AP