A homeowner in the Hudson Valley got quite a scare when a black bear got stuck in a fenced-in yard.

On Wednesday, the New York State Department of Environmental Conservation announced that an officer received a call about a black bear that entered a fenced-in yard in the town of Olive, on Aug. 12.

The bear was unable to find a way out, officials say.

A pair of DEC officers responded and found a young black bear feeding on bird seed remnants even though the feeders had been removed.

The extremely brave officers, in my opinion, created several openings in the fence and coaxed the young bear out of the yard.

During their dealings with the bear, the officers noted its two yellow ear tags and documented the tag numbers. The tag numbers were given to DEC's Bureau of Wildlife and the landowner was advised to clean up any remaining bird seed and other attractants around the yard.

More From Hudson Valley Post