Bear found sleeping inside a closet in a house in Montana

A black bear found indisde a home in Missoula, Montana, June 21, 2019. (Courtesy Missoula County Sheriff's Office) ( Courtesy Missoula County Sheriff's Office )

Authorities say a black bear somehow locked itself inside a Montana home and then nestled onto a closet shelf that wasn't too hard, wasn't too soft, but just right for a nap.

Missoula County sheriff's officials say the bear just yawned when deputies knocked on the window and unlocked the door in an attempt to coax it to leave Friday morning.

A black bear found indisde a home in Missoula, Montana, June 21, 2019. (Courtesy Missoula County Sheriff's Office)

They had to call Montana Fish, Wildlife and Parks Department officials, who tranquilized the bear so it could be relocated.

RELATED: Elusive black bear finally tranquilized and caught in Roxborough

Sheriff's officials say in a Facebook post that deputies responded at 5:45 a.m. to a call that a bear opened the door to the Butler Creek's mudroom and somehow locked the deadbolt once inside.

They say the bear "began ripping the room apart" before climbing up the closet for a nap.