A heart-breaking photo taken during the rescue shows the pitiful pug trapped inside the narrow tube