Buffalo shooter’s previous threat raises red-flag questions