What is the main ruling when a sheep or dog dies in a well?

Impurity in Wells and Rules of Drawing Water