A North Carolina man was arrested after federal prosecutors say he tried to fly to Morocco to join the Islamic State group last month.