A man in his 20s has been airlifted to hospital after being bitten by a shark just off Moreton Island in Queensland.