A small black bear is swaying back and forth on a wall at a zoo.