Heroic teacher was shot three times as he tackled gunman to save his class