Try not to react to your child's outburst.
Try to soothe him or distract him. If that doesn't work remove him from the situation for a short period of time to help him wind down. The second often forgotten part is to acknowledge good behavior. Remember: "negative attention is better than no attention at all.".