Sikh temple president tried to stop gunman