The 37-year-old escaped by striking the shark when it charged at him.