Virginia school warned before 6-year-old shot teacher, lawyer says