Your fermented beer is saturated with Carbon Dioxide gas, even though it tastes flat. The pellet hops you added caused the gas to come out of solution violently (read: nucleation sites, mentos in diet coke). If you're going to dry hop, put the pellets in the secondary and rack onto them...