Alligators used to sun themselves in sand traps on my parents’ course. As a rule, they can be considered loose impediments.
If your ball is in the same hazard as the loose impediment, however, you can’t move the impediment and still play the ball where it was.
But again if you can shoo it away (as with noise or other non contact means) maybe you can play the ball. I do not know if golf has an animals rule.