The total momentum before is zero so by the law of conservation of momentum the momentum after the ball is fired is also zero.