Buffalo shooter purchased a semiautomatic rifle in New York with a MA Lock