Man encountered shark while surfing on beach