The Germany forward reacted angrily and got Pepe sent-off, going on to score a hat-trick