FILE PHOTO - A security personnel detains the man accused of stabbing two German tourists to death and wounding four others during an attack at the Zahabia hotel resort in Hurghada, south of the capital Cairo, Egypt, July 14, 2017. REUTERS/Mohamed Aly

CAIRO (Reuters) - An Egyptian man who stabbed three foreign tourists to death and wounded three more earlier this month at a Red Sea resort had tried to join Islamic State, according to a police investigation, two security sources said on Sunday.

Officials say Abdel Rahman Shaban Abokorah killed two German women and a Czech woman and wounded three other tourists at the popular Red Sea resort of Hurghada on July 14. He was caught by hotel staff and arrested.

Investigators have recommended he face terrorism charges, the two sources said. Authorities have so far not commented officially on motives for the attack, and no group has claimed responsibility for the attack,

The two sources confirmed a Facebook page belonging to the attacker contains a series of references to Islamic State, with the militant group’s flag displayed prominently in his profile.

Authorities say the attacker killed the two German women and wounded two more tourists at the Zahabia hotel in Hurghada, then swam to a neighboring beach to attack at least two more people at the Sunny Days El Palacio resort before being caught by staff and arrested.

The Czech woman was among the wounded. She died of her injuries last week.

It was the first major attack on foreign tourists since a similar assault on the same resort more than a year ago. It came as Egypt struggles to revive tourism, which has suffered from security threats and years of upheaval.

Egyptian President Abdel Fattah el-Sisi’s government is battling an Islamic insurgency that has killed hundreds of troops and police in northern Sinai and has started to attack other parts of Egypt.