It was a sending off his arm stopped a goal ... the rule is that simple.
In Fifa’s laws of the game 2005, rule 12 states that a free-kick or penalty will be awarded if a player “handles the ball deliberately (except for the goalkeeper within his own penalty area)”.