Politely ask for an explanation of what happened from the teacher's perspective. After you have that, you will know the appropriate steps to take.