EgyptAir says a passenger has been detained after storming the pilot's cockpit on a flight carrying 150 passengers.

The Friday incident took place aboard charter airline CairoAir 462, which took off from the Saudi capital, Riyadh, to Alexandria's Borg el-Arab airport, EgyptAir said.

The passenger was not armed.

"The crew checked if the passenger was not carrying whatever can impact the security and the safety of the passengers," it said.

The pilot notified airport authorities, who declared a state of emergency. The passenger was detained when the plane landed, EgyptAir said.

EgyptAir suffered a tragic loss in May when Flight 804, an Airbus A320 flying from Paris to Cairo, plunged into the Mediterranean Sea, killing all 66 people on board. The cause of the crash remains unknown.