Family swept out to sea in attempt to save dog who made it back to shore