The middle school’s principal said the affected students were treated by paramedics, adding it appeared to be an isolated incident.