A JetBlue pilot diverted a New York — to — Las Vegas flight to Detroit Saturday morning because of an agitated passenger, PIX 11 news reported.

The plane departed from John F. Kennedy International Airport around 7 a.m. and landed in Detroit at about 8:30 a.m. out of an "abundance of caution," according to a statement from a JetBlue spokesman.

It was not immediately clear what caused the incident, ABC news reported. A passenger video obtained by the news organization shows a man standing on his seat, shouting at two flight attendants. The man was subdued by the attendants and restrained with plastic ties, according to the report on pix11.com.

He was taken into custody by authorities in Detroit, the report said. The plane departed Detroit and landed in Las Vegas around 11:30 a.m.