For small amounts of pyro (except Plastic Maroons and Microdets) you have 2 options:
1. You can attempt to fire the device outside at a safe distance.
2. You can immerse the device in a bucket of water for 24 hours. You should pierce any paper tops so that the water can easily permeate the device.