Officials say school shooting plot thwarted