Black bear was sleeping 40 feet up in the tree at the refuge