The man climbed atop the rock while hiking.