A wrongful death lawsuit had claimed a cashier was "in the scope of employment" when he shot and killed a customer.