Two people were caught in a rip current near a fishing pier while another man was found unresponsive on the beach.