Police say Buffalo shooter purchased weapons legally and planned to continue killing spree