Surfer fights off shark attack during competition