Woman bought gun weeks before grandson's deadly shooting