Teen accused of attempted murder used stolen gun obtained from school