Two dead in US school shooting after online warnings