Simple, anonymous. As his trainer, it’s up to you to teach him not only techniques but also discipline. Teach him that there are times and places to use his attacks and that, outside of a battle under your command, his attacks are only to be used against another pokémon only as a last resort. Provide him with other outlets to relieve stress and anger, and be sure that you’ve trained the rest of your team to treat him like, well, a teammate (that is, someone to help when they ask for it).
Best of luck, anonymous!