They played the ball backwards from the restart - the ball has to go forward, so it wasn't in play when the shot was taken. Surprised we had a ref who understand the more obscure rules of the game.
Could be proven wrong on Monday but that's my take on it.