ISTANBUL, Aug. 18 — Two men tried to hijack a Turkish passenger plane with 142 people aboard on Saturday but failed after pilots arranged an emergency landing in the Mediterranean resort of Antalya and the two lost control of the passengers.

The plane was en route to Istanbul from Nicosia, in northern Cyprus, when the hijackers, identified by Turkish officials as Mehmet Resat Ozlu, a Turkish national, and Abdulaziz Maliki, a Syrian holding a Palestinian passport, demanded that it be diverted to Iran. They were protesting actions by the United States administration, the officials said.

The pilots reported being under attack minutes after the Atlas Jet flight, carrying 136 passengers and six crew members, took off.

The two men, shouting in Arabic, ran to the cockpit door and tried unsuccessfully to kick it open. One held a plastic bag and said it contained a bomb, passengers told NTV, the private television network.