Officials: Gun in supermarket shooting bought 6 days earlier