Hero teacher keeps calm amid shootout