Garbage disposal Power source
The pop and flash was an arc, which could have been either a short circuit or a bad connection blowing apart.

If it occurred at the connections you made to the disposal, correcting those connections should solve the problem and the unit has almost certainly not been damaged. If it occurred elsewhere, you may have a larger problem.

If you have to ask, I would strongly recommend getting a friend who has more experience to help you correct this.