Material:
Ge Hua and Li Qiang quarreled over a trivial matter between classes, Ge Hua took two beats, and was just about to fight back, when the class bell rang, Li Qiang quickly ran into the classroom. Ge Hua felt that he had suffered a loss and was furious. He stood at the door of the classroom and pointed at Li Qiang and shouted: "If you have the ability, you come out for me, I have to beat you flat!" At this time, Teacher Yu, who happened to come to math class, saw this scene. Teacher Yu was stunned for a moment, and immediately said to Ge Hua kindly: "Ge Hua, you see that the teacher has taken so many homework books, can you help the teacher send them to the students?" Although Ge Hua was still angry, he quickly took the homework book and sent it down. Teacher Yu said to the class: "Although Fu Hua had a little conflict with others just now, he happily helped me with my homework in order not to affect the class, which is very good!" I'm sure he'll handle it properly after class. When Ge Hua heard the teacher's praise, he turned his anger into joy, and he was very serious in class. After class, Mr. Yu asked Li Qiang to help him take the teaching aids back to the office, and took the opportunity to ask about the incident. After listening to Li Qiang's story, Teacher Yu patiently said to him: "Although both parties are responsible, the beating has caused harm to others. How would you feel if you were beaten? You are already middle school students, and you must learn to use your wisdom to resolve conflicts with others amicably. The teacher is confident that you will take care of this. After that, Li Qiang took the initiative to apologize to Ge Hua, and the two reconciled.
Question: Please evaluate the teacher's educational behavior from the perspective of the teacher's professional ethics in combination with the materials.