A man has been flown to hospital after being bitten by a shark at a popular tourist destination north of Brisbane.