Ilyas Akhtar, 20, is accused of preparing terrorist acts and starting fires at two leisure venues.