The keeper stick his right leg up in what looks like an attempt to trip the opposing player. It doesn't look like he was trying to protect himself. Looks like he was trying to trip/hurt the other player. Good call by the official.

Just my opinion.