Boy dangles upside down to rescue puppy from oil well