Four British nationals were on the Egyptian plane forced to divert to Cyprus due to an alleged hijacker who was wearing a fake suicide belt.

The captain and crew have been congratulated for how they dealt with the incident in which a man on board claimed to have an explosive belt and took people hostage.

The plane was carrying 56 passengers, including 26 foreigners, on an EgyptAir domestic flight from Alexandria to Cairo.

Most of those on board were freed shortly after the plane landed at Larnaca airport on the Mediterranean island at 8.50am, before the hijacker held seven people hostage for a number of hours.

A Foreign Office spokeswoman said: "We are relieved that the situation at Larnaca airport has now come to a safe conclusion. We are providing consular support to four British nationals caught up in today's events.

"We remain in close contact with the Cypriot and Egyptian authorities."

Diplomats in Dublin said they did not believe any Irish citizens had been caught up in the hijacking.

The man was arrested minutes after some of those being held were seen walking down the stairs of the plane, with another escaping through a cockpit window before they were led away by security officers.

EgyptAir said Cypriot authorities at the airport had confirmed "the explosive belt that the hijacker allegedly said that he was wearing is fake".

The Egyptian Minister of Tourism, Yehia Rashed, said: "We congratulate the EgyptAir captain and his crew for landing the plane safely and for putting the safety of the passengers as a priority, in a highly professional manner and in accordance with international aviation standards.

"The Egyptian Prime Minister, Sherif Ismail, was personally involved in helping to resolve this incident and EgyptAir is currently taking the necessary steps to bring back all passengers involved.

"We are assured by passengers on the flight that all security measures at Borg El Arab Airport were fully implemented."

Footage posted on the official Facebook page of Egypt's Ministry of Interior appears to show the hijacker passing through security before boarding the flight.

The man, circled in red, can be seen loading his bag to be scanned and calmly walking through a detector. He is then frisked by a security official before collecting his bag and walking off.

Another image posted on the page shows a scan taken of his bag, which appears largely empty.

Cypriot officials confirmed the incident had reached a peaceful conclusion.

Officials said early on that the hijacking was not an act of terrorism, and later that the man appeared to be psychologically unstable.

The man was said to have initially asked to speak with his Cypriot ex-wife, who police brought to the airport.

At one point he demanded the release of women held in Egyptian prisons, but he then dropped the demand and made others.

According to The Guardian, an official at Egypt's ministry of foreign affairs added: "He's not a terrorist, he's an idiot. Terrorists are crazy but they aren't stupid. This guy is."

Egypt's official Middle East News Agency identified the hijacker as Seifedeen Mustafa, without providing further details.

The hijacking will raise serious concerns over security at Egyptian airports, and one aviation expert claimed the incident was a return to "the security stone age".

David Learmount said it appeared the captain of the flight "didn't have faith in the security systems" and felt he had to follow the hijacker's demands, resulting in the "first major successful hijack since 9/11".

But he said the captain should have been confident that it was "impossible" for someone to have got through security with a suicide belt.

The incident comes just five months after 224 people were killed when a Russian aircraft crashed over Egypt's Sinai Peninsula minutes after it took off from the Red Sea resort of Sharm el-Sheikh.

Russia later said an explosive device brought down the aircraft in October, and the extremist Islamic State group (IS) said it was responsible.

Minister Charlie Flanagan, from the Department of Foreign Affairs and Trade in Ireland, said: "I was glad to see a peaceful resolution to the hijacking incident at Larnaca airport in Cyprus earlier today.

"In the event, my department did not receive any request for consular assistance and, as far as I am aware, none of the passengers was travelling on an Irish passport."

One of the British nationals on board posed for a photograph with the alleged hijacker, according to reports.

A picture, which is circulating on Twitter and has been published by news organisations, shows a man - who has been named in reports as Ben Innes from Leeds - standing next to a man wearing what looks like an explosives belt on a plane.

Mr Innes, believed to be a health and safety auditor, is said to have approached the alleged hijacker while being held hostage on the tarmac, and sent the photograph to one of his flatmates as well as other friends, it has been reported.

Mr Innes's flatmate Chris Tundogan told MailOnline he had "no idea" why his friend had the photograph taken, adding: "I find it pretty mental, but that's just Ben I guess!"