Baking soda and mineral oil:
Add a couple of spoons of baking soda to a cup of mineral oil. Drain it down the goat's throat using a syringe without a needle. If you know how to tube a goat, tube the mixture as it will a lot less messy.
This antitoxin will help ease the rumen of the goat and help him against the pain. It should be in your cabinet box all the time. Dissolve it in water and feed it to the goat. There are no harmful effects because even if the body does not need the toxin, it will pass it out in the urine.
Consult a veterinarian:
Since bloating can turn into a life threatening situation for a goat, you should consult the closest veterinarian at the earliest if the above two solutions do not seem to wok. The pressure developed in the goat's abdomen can hamper the performance of the heart and lungs. Most veterinarians will release this pressure using an incision tool called a trochar. Using the trochar, a cut is made at the back of the goat at bottom of the ribs on the left side. This releases the pressure instantly.
If you are unable to contact a veterinarian and have some experience with this method, you can do the same on your own. if trochar is not available, you can use a sharp pointed knife. Bandage the goat once you are done.