Turkish authorities on Tuesday detained a man who threatened to blow up a passenger plane to divert it to Iran, officials said.

The man, identified as Mehmet Goksen Gol, entered the cockpit and threatened to blow up the plane, claiming to have an explosive device on board, Ankara Deputy Governor Hayati Soylu said. The man was not armed and did not have explosives.

He was detained at Ankara's Esenboga airport where pilots landed the Pegasus airline flight, which was going from Diyarbakir to Istanbul.

There were 178 passengers on board, including three babies, the airline said. None of the passengers were hurt.

There was no information as to why the man wanted to divert the plane to Iran.

Firat Keles, a passenger on board, told a Turkish television network that the man could be seen reading the Koran during the flight. There was no panic on board, he said.