An octopus took a diver by surprise when it emerged from the ocean floor where it had been camouflaged.