United Kingdom, July 23 -- A man left in critical condition after the drowning of Malcolm-Jamal Warner was trying to save him.

The 54-year-old actor died after being swept away by a rip current on a beach in Costa Rica over the weekend and another unnamed man - who was injured in the incident - was actually a Good Samaritan who spotted Warner in difficulty and tried to save him.

The Judicial Investigation Agency (OIJ) told PEOPLE in a statement: "The victim appears to have entered the sea and was apparently swept away by a current. The man was rescued by bystanders and taken to shore, where he received treatment from the Costa Rican Red Cross. However, he was declared lifeless at the scene."

A spokesperson for the OIJ confirmed to PEOP...