Dog rescued off NSW coast