A man was killed in a shark attack while he was surfing off the coast of Australia on Tuesday morning.