Royal Canadian Mounted Police say a teen has been arrested in Alberta and charged with terror-related offenses.

The 17-year-old was taken into custody Thursday in Beaumont, a bedroom community south of Edmonton.

Police said Friday that the teen is charged with trying to leave the country to fight in Iraq and Syria with the Islamic State group — a terrorist organization.

The suspect is facing one charge of attempting to leave Canada to commit an act of terror. He also faces one charge of attempting to leave the country to join a terrorist group.

The teen cannot be identified under Canada's Young Offenders Act.

The person has been detained and is to appear in youth court April 9.