Teacher accused of throwing books at students