In the Pacific Coast state of Nayarit, north of Puerto Vallarta, Gov. Ney Gonzalez Sanchez abruptly suspended the school year three weeks early as anxious parents, upset by rumors and threats on social-media outlets such as Twitter and YouTube, demanded action but feared attacks on children.