Apparently a swimmer off the coast of Haifa, Israel was swept away and got into trouble. It just so happened that a submarine surfaced and saw the man in distress. They brought him onboard and gave him first aid.
The article did not give the name of the sub, and was scarce on many details, but you can read it here.
The type of submarine was also not listed, but I bet when the man saw something like this coming to help, he was relieved.
Type 800 Dolphin Class submarine (Israel)