A student's visa has been cancelled for links to 'weapons of