A man has died after being bitten by a shark in a tourist hotspot in western Australia - the second fatal shark attack in the country this year.