On Friday, an assailant armed with a knife assaulted the guests of a Hurghada hotel and killed two women from Germany, while four other tourists from Armenia, the Czech Republic and Russian Federation were injured.
Egyptian authorities said that the man in his 20s sneaked into the hotel by swimming from a nearby beach.
The attack on the tourists took place just hours after five policemen were killed in a shooting near some of Egypt's most famous pyramids in the greater Cairo area.
Berlin on Saturday said two women who were killed after being stabbed in an Egyptian beach resort were German nationals, confirming earlier reports.
The knifeman, aged in his mid-twenties, was arrested as he tried to swim away from the scene of the attack when police officers used a boat belonging to the hotel and caught him, an eyewitness said.
This has been the first major attack on foreign tourists since a similar assault at the same resort occurred more than a year ago, and comes at a time when is Egypt struggling to revive a tourism industry hurt by security threats and years of political upheaval.
Two German tourists died of their wounds while four tourists were wounded, including citizens of Ukraine and the Czech Republic, the official told The Associated Press.
Four other tourists were injured in the attack, Egyptian state-run news agency Al-Ahram reported.
Rashed said that investigations were still underway to determine the nature of the attack, which has not yet been confirmed as a terrorist incident. In January 2016, two assailants armed with a gun, a knife and a suicide belt landed on the beach of a hotel in Hurghada, wounding two foreign tourists, security sources said. The violence has been concentrated in the northern Sinai Peninsula, but attacks have spread to the mainland, including the capital.
Attacks targeting tourists across Northern Africa in recent years, and the unrest since the country revolution in 2011, have made a significant dent in Egypt's heavily tourist reliant economy.