A US F-16 fighter jet crashed near the Strait of Hormuz on Friday, and President Donald Trump said its pilot had been rescued and was “in good shape”.

The pilot was on a mission near the waterway when the aircraft went down, The Wall Street Journal reported, citing people familiar with the matter. A US investigation is examining whether the crash was caused by enemy fire or a technical malfunction.

Trump said he did not know what caused the crash. “We don’t know exactly yet. Could have been hit or it could have been some kind of a problem with the plane itself, but maybe he was hit, you know, if you shoot enough every once in a while you hit something,” he told reporters at the Ronald Reagan Presidential Library in Simi Valley, California.

“But he’s in good shape. Great shape, actually,” Trump said of the pilot.

Two sources told CNN that the US military recovered the pilot. The news outlet reported that an unmanned surface vessel, also known as a drone boat, first picked up the pilot after he landed in the water. A US Air Force combat search and rescue task force then transferred him. The New York Times reported that he spent less than an hour in the water before being rescued.

Al Jazeera’s Rosiland Jordan, reporting from Washington, DC, said it was unclear how the US would respond. She noted that an earlier incident in which Iranian forces fired on and brought down a US fighter jet was followed by US military retaliatory strikes.

“But again, the US officials, according to numerous reports, do not know exactly why this F-16 crashed,” Jordan said.

Jordan added that US fighter jets have been involved in enforcing the naval blockade on Iranian shipping traffic through the Strait of Hormuz, and in providing intelligence and security for commercial and military vessels using the waterway.

A US official told The Associated Press news agency that the drone boat used in the rescue was a Saronic Corsair, the same model that assisted army aviators after their aircraft crashed in June.

In June, a drone boat picked up two aviators after their army helicopter went down during a patrol off the coast of Oman. US Central Command (CENTCOM) described it at the time as the US military’s first known operation of its kind.

A US F-15E fighter jet was shot down over Iran in April. One crew member was rescued within hours, while another was recovered days later by special operations forces.

The US has announced the loss of multiple crewed aircraft during the conflict, including four F-15s—one shot down by Iranian forces and three by Kuwaiti friendly fire—and a tanker plane that crashed in Iraq.