He was charged with attempting to provide material support and resources to terrorists , and dealing arms without a licence .