Pulse gunman ‘agitated’ before attack