Dylan Maxwell Cocker pleaded guilty to recklessly discharging a firearm