The gunman shot himself while police negotiators tried to get him to surrender.