A federal judge in Alexandria sentenced a New York man Tuesday to nine months in prison after authorities said he shouted threatening statements, including saying “jihad,” aboard a flight leaving Dulles International Airport.

David Patrick Diaz, 36, of Poughkeepsie, N.Y., also received three years of supervised release from U.S. District Judge Anthony J. Trenga in the Eastern District of Virginia. Diaz was charged with interference with flight crew members and attendants.

The incident happened in March 2015, when Diaz shouted threatening statements as he charged toward the cockpit of a United Airlines flight just after it took off from Dulles.

A group of passengers tackled Diaz, and he allegedly said the word “jihad.” He also said there was “something in the belly of the plane,” according to authorities.

Flight crew members and passengers kept Diaz restrained until the plane made it back safely to Dulles, officials said. Diaz pleaded guilty in January.

Diaz is also ordered to undergo mental health and substance abuse treatment. He has to pay about $22,100 in restitution to United Airlines.