CAIRO — Egyptian officials say authorities have deported a German teenager they say had come to Egypt with the intention of joining Islamic State militants fighting security forces in the Sinai Peninsula.

They said the Giessen resident was put on a flight to Germany early Monday. They said he was detained at Luxor airport on Dec. 17 when police found maps of Sinai and a compass in his possession.

They said questioning him revealed that he subscribed to IS ideology and was in online contact with members of the militant group.

The officials spoke on condition of anonymity because they were not authorized to talk to reporters.

The teenager was the second German citizen to be deported from Egypt for alleged links to IS. Last week, authorities repatriated a 23-year-old Goettingen resident.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.