A 13-year-old boy swam over four kilometres to alert rescuers after his family was swept out to sea in Australia.