The dog fell into the 100ft deep well but was rescued by clinging onto a rope with its teeth as onlookers pulled him up to safety.