Texas student brought guns to school, hoped to make 'demands' on intercom