Judge detains alleged Minnesota terror recruit