Lifeguard rescues swimmer stuck in rip current