Guilty plea in granddaughter shooting