Puppy is rescued from 12-foot well