Gunman told 911 'I just shot up a synagogue' after attack