I'm not completely familiar with the rules, but to me that wasn't a penalty. He wasn't making his body bigger, in fact, it was quite the opposite. There was neither intention, nor carelessness. His intention was to pull his hand away. Ironically, that's exactly why the ball hit his hand. If his hand had been further away from his body, there wouldn't have been a handball.