Lawsuit alleges that a second-grade New York City teacher was repeatedly beaten by a student