A 38-year-old man has died after a shark attack off Rottnest Island in Western Australia.