The 39-year-old was fatally injured while swimming out at a shoal off the Cassowary Coast in Queensland.