Which ally of Germany was most surprised by the signing of the agreement?