The alleged plan included explosives and firearms to kill and injure students and staff, authorities said.