Screenshot from IFAB below, going through almost exactly this scenario.
Just for complete clarity, the defending player here is the the one on his knees attempting to stop EMC's shot from going into the goal, the offside player is Wright.
In the rules, as far as I can see it, this is a 'save'...