Two detained in alleged school threats