A man has died after being mauled by a shark while ​surfing at a beach in Australia's New ‌South Wales state, police have said.