An Egyptian man who hijacked an EgyptAir plane Tuesday and forced it to land on the island of Cyprus, was arrested.
During the incident, most passengers were eventually freed, though four crew members and three passengers remained on board with the hijacker until his arrest, Egyptian and Cypriot officials said.
The man's motivation was unclear, but Cyprus President Nicos Anastasiades said the hijacking was "not something that has to do with terrorism" and a Cyprus government official, speaking on condition of anonymity to discuss an ongoing investigation, said the man "seems (to be) in love."
Anastasiades, appearing alongside European Parliament President Martin Schulz in Nicosia, was asked by reporters whether he could confirm that the incident was about a woman. "Always, there is a woman" involved, he replied, drawing laughter.
A civil aviation official, also speaking on condition of anonymity because he wasn't allowed to disclose details of ongoing negotiations, said the man gave negotiators the name of a woman who lives in Cyprus and asked to give her an envelope. The relationship between her and the man was unclear, although some in the Cyprus media reported it was his ex-wife.
Flight MS181 took off from the Mediterranean coastal city of Alexandria en route to Cairo with at least 55 passengers, including 26 foreigners, and a seven-member crew.
An official with flight-tracking website FlightRadar24 said the plane showed no immediate signs of distress. The flight between Alexandria and Cairo normally takes about 30 minutes.
There was confusion about the hijacker's identity. At a news conference in Cairo, Egypt's Civil Aviation minister, Sharif Fathi, refused to identify him.
Earlier, Egyptian government spokesman Hossam al-Queish said the hijacker was Ibrahim Samaha, but an Egyptian woman who identified herself as Samaha's wife said her husband is not the hijacker and was on his way to Cairo so he could fly to the U.S. to attend a conference.
The woman, who identified herself only as Nahla, told the Egyptian private TV network ONTV in a phone interview that her husband had never been to Cyprus and that a photo on Egyptian and regional TV channels that supposedly showed the hijacker was not him. Later, the official Middle East News Agency gave a different name for the hijacker.
Al-Queish, the government spokesman, also told the private CBC TV network that authorities could not confirm that the hijacker had explosives on him. An earlier statement from the Egyptian Aviation Ministry said the man claimed he had a belt with explosives.
The plane landed at the airport in the southern Cypriot city of Larnaca, also on the Mediterranean. A statement from the Egyptian Civil Aviation Ministry statement said the foreigners on board included eight Americans, four Britons, four Dutch, two Belgians, a French national, an Italian, two Greeks and one Syrian. Three other foreigners could not be identified.
Fathi did not give the nationalities of those who remained on the plane and appeared to be defensive when asked about security measures at the Alexandria airport, repeatedly telling reporters that he must withhold some information in the interest of safeguarding negotiations with the hijacker.
The passengers released by the hijacker calmly walked off the plane down a set of stairs, carrying their hand luggage, and boarded a bus parked by the plane's side. Security was tight at the airport, with police repeatedly pushing back reporters and TV news crews working just outside the facility's fence, near where the aircraft stopped.
Police also evacuated the nearby Makenzy beach, a stretch of coast close to the airport and popular with tourists. It was not immediately clear why.
An Egyptian aircraft later flew to Larnaca so it could bring back the released passengers, according to officials.
The incident raises more questions about security at Egyptian airports, five months after a Russian aircraft crashed over Egypt's Sinai Peninsula minutes after it took off from Egypt's Red Sea resort of Sharm el-Sheikh.
All 224 people on board were killed in the crash. Russia later said an explosive device brought down the aircraft and the extremist Islamic State group took responsibility.
U.S. Homeland Security Secretary Jeh Johnson, appearing on MSNBC's "Morning Joe" program Tuesday, said that a "very good question" is whether the man who hijacked the plane Tuesday was able to pass through airport security with a bomb-laden belt.
The hijacking was reminiscent of a deadly 1978 incident that involved Egyptians, planes and Larnaca airport.
The incident arose when two Palestinians assassinated an Egyptian government minister at his hotel in Nicosia. The assailants took hostages and drove to the airport, where they boarded a plane with them. They later returned to Cyprus, where they had an hours-long standoff until an Egyptian C-130 carrying commandos landed at Larnaca airport.
The commandos attempted to storm the Cyprus Airways jet, but were fired upon by Cypriot troops. Many were killed. The Palestinians eventually surrendered. They were arrested, sentenced and released years later.
The incident poisoned Egypt's relations with Cyprus for years. Relations eventually improved, but it was Egyptian President Abdel-Fattah el-Sissi, in office since June 2014, who has forged close ties with Cyprus. El-Sissi and Anastasiades frequently confer in person or on the phone. They spoke by phone Tuesday about the hijacking.
Hendawi reported from Cairo. Maggie Michael in Cairo contributed to this report.