A man has died after being pulled from the water off a southeast Queensland beach.