Dozens of sharks were spotted between two beaches in New South Wales, Australia, prompting officials to warn swimmers.