Student charged in shootings near Pa. high school