1. "Undo" the add of this payment to the register as an expense (in the bank feed, "In QuickBooks")
2. Add an A/P bill under the vendor name for the tax agency in the amount of the payment, using "Sales Tax Payable" as the account for this bill entry
3. Go back to your bank feed and "match" this bill to the payment to clear the liability, all fixed!