A group of tourists posing for a photo panicked as a motionless crocodile behind them suddenly snapped its jaws as a prank.