Police told the court last fall that the teacher was being investigated for “inappropriate sexual contact” with the boy.