DENVER (CBS4) – A Denver man recorded his rescue on social media after his plane crashed off the coast of California. David Lesh and his passenger held on to the wing of the plane until rescuers arrived.

(credit: CBS)

The pair were on a photo shoot when Lesh said the plane’s engine died. Another pilot, Owen Leipelt, was flying in another small aircraft and quickly began searching for Lesh and the passenger.

(credit: CBS)

“We were two airplanes flying in formation to take pictures with San Fancisco in the background,” said Leipelt.

(credit: CBS)

The U.S. Coast Guard credits Lesh’s friend for helping guide rescuers to save their lives. The Federal Aviation Administration and National Transportation Safety Board are investigating the crash.