Dog freed after 19 hours stuck underground