The hosts led 2–1 and were edging toward a spot in the play-offs, but the final minutes turned into a crushing setback for the Azerbaijani side