Answer:
It was most likely static electricity
Explanation:
Static electricity comes down to the interactive force between electrical charges.
So because your computer charger has electricity the foil is a conductor so the sparks were most likely static electricity