The teacher was called to the student who simulated a heart attack