A former teacher and his brother allegedly used students to help build bombs in an attempt to carry out a possible terror attack, officials said.