US school warned three times boy had gun before shooting: Lawyer