heroic sheriff's deputy in Oregon who nearly gave his own life to save a teen. The two got stuck in the water and couldn't swim to safety. ABC's Linzie Janis with how this played out. Reporter: These... See More
heroic sheriff's deputy in Oregon who nearly gave his own life to save a teen. The two got stuck in the water and couldn't swim to safety. ABC's Linzie Janis with how this played out. Reporter: These dramatic images capture the moment that deputy sheriff terry brown and a 14-year-old student were rescued, after spending 45 grueling minutes in the frigid ocean, 150 feet from the shore. Somebody's actually stuck out in the tide right now. Reporter: It was seventh grader Joshua Peterson, at Harris beach Sunday night, known for its dangerous rip currents. The wave came up from behind me. And I was thinking no one could hear me when I was shouting for help. Reporter: But someone did call for help, Joshua's friend. I can see them, like, their head bobbing up and down. Reporter: On the scene in minutes, deputy sheriff brown. You don't want to just stand there on the shore and watch somebody die when you can do something about it. Reporter: The deputy dives into the water, but the rope runs short. And he, too, gets caught up in the rip current. There were multiple times he told me he didn't want to die. Reporter: In the waves, the twosome talked about anything and everything. I asked him if he had a wife and kids. He said he had a wife and a 5-year-old daughter. Reporter: But deputy brown was losing consciousness. It wasn't me saving his bacon. We were in it together. Reporter: Finally, the curry county water rescue team pulls them to safety. But Peterson and deputy brown's bond didn't end there. They spent the night in the same hospital room. Both are expected to be just fine. For "Good morning America," Linzie Janis, ABC news, New York.
This transcript has been automatically generated and may not be 100% accurate.