A 42-year-old man has died of a heart attack after apparently being stung by a stingray while swimming off the Tasmania coast, police said.

Attempts to resuscitate the man, who …