Cristiano Ronaldo scored a late winner with a penalty as Al-Nassr won 2-1 against Al-Shabab in a dramatic conclusion to the game.