A California pilot has been indicted for allegedly threatening to shoot a flight’s captain if he diverted the flight because of a passenger medical issue.

Jonathan J. Dunn was indicted on Oct. 18 for interfering with the crew of a commercial airline flight, the U.S. Department of Transportation’s Office of the Inspector General said in a news release.

The incident unfolded on Aug. 22, 2022, when Dunn was the crew’s first officer.