CAIRO - Two foreign women were killed on Friday and four others were wounded when an assailant stabbed them at an Egyptian Red Sea beach resort, officials said.
The governor of Red Sea province, where the resort of Hurghada is located, said two "foreign residents" of the city were killed in the attack, a cabinet statement said.
Although the attacker's motives were unclear, the stabbing will come as a blow to Egypt which has been trying to woo back tourists after years of unrest and deadly attacks.
There was confusion about the nationalities of the victims, with Egyptian officials and state media initially saying the two women killed were Ukrainian which Kiev's ambassador to Egypt denied.
An Egyptian health ministry official told AFP "the two foreigners killed earlier are Germans".
But Germany's foreign ministry, which condemned the stabbing as "cowardly" in a statement, said it could not confirm or deny whether its nationals were among the victims.
An Armenian foreign ministry spokesman said two Armenian women had been wounded in the attack, and the Czech foreign ministry tweeted that one of its nationals had been lighty injured.
The interior ministry said in a statement that the attacker, who had swum ashore, was arrested and was being questioned.
"We don't know his motives yet, he could be crazy or perturbed -- it's too early to tell," a senior interior ministry official told AFP.
In January 2016, three tourists in Hurghada were wounded in a stabbing assault by two assailants with apparent Islamic State group (IS) sympathies.
There was no immediate claim of responsibility for Friday's stabbing.
Hurghada is one of Egypt's most popular beach resorts, especially with Ukrainians and European tourists.
Security has been boosted in resorts around the country, as the tourism industry provides Egypt with much-needed revenues.
An IS bombing of a Russian airliner carrying holidaymakers from a south Sinai resort in 2015 killed all 224 people on board and decimated the country's tourism sector.
Russia suspended all flights to Egypt in response and has yet to resume them.
IS has been waging a deadly insurgency based in the north of the Sinai Peninsula that has killed hundreds of policemen and soldiers.
Policemen shot dead
Also on Friday, unknown assailants shot dead five policemen south of Cairo, in the latest of a series of attacks targeting the country's security forces.
The ministry said three gunmen opened fire on a police car and then fled, killing a non-commissioned officer, three conscripts and a police employee.
CCTV footage posted online by the Ahram newspaper showed the three assailants pretending to fix a motorbike before they opened fire on a passing police truck then looted it.
The attack took place near Badrasheen, a town some 20 kilometres (12 miles) from Cairo, where militants have also targeted police in the past.
As with the beach stabbing, there has not yet been any claim of responsibility for the attack.
The killings came as police and the army said they were closing in on militants and jihadists following a spate of deadly attacks in the Nile Valley and the Sinai Peninsula.
Egypt has struggled to quell IS jihadists based in the Sinai and smaller militant groups in the mainland since the military overthrew Islamist president Mohamed Morsi in 2013 and cracked down on his supporters.
IS jihadists killed at least 21 soldiers in restive north Sinai on July 7, the same day as the militant Hasam group claimed responsibility for shooting dead an officer with Egypt's secret police in an attack north of the capital.
While smaller groups such as Hasam have mostly targeted policemen and government officials, IS has also attacked foreign tourists and Egypt's Coptic Christian minority.
Dozens of Christians have been killed in church bombings and shootings since last December in attacks claimed by IS.
The jihadists have threatened to carry out further attacks on Christians, who make up about 10 percent of Egypt's 90 million people.