I'm sorry to hear about your fish.

If your fish is really suffering and you know it's going to die, I wouldn't make it agonize any longer in vain and just put it to sleep by euthanizing it in the freezer. The remaining other fish I would take back to the store like Nossie said, unless you are willing to find it a larger home...even a cheap 55 litre tupperware container would due until you can afford a tank!