Option: Use this amount to the liabilities to that GSTIN, and claiming a refund require, fill the form on GST portal and submit the copy the the concerned department. which is long process so it is better to use the amount to liabilities.
option 2: Deposit the required amount of tax in cash ledger and pay the liabilities of your GSTIN
If you don't know the person relating to that gstin, just write a letter to proper officer of your local gst office, just like we do in case of wrong payment of Income tax to another pan instead of ours.