Virginia bear rescued after getting itself stuck in factory