Chapel Hill man suffered heart attack after escaping rip current