Cristian Medina scored a last-gasp goal to salvage what looked like a 2-2 draw with Morocco before fans invaded the pitch and stopped play.
After order was restored and the teams had left the field, they discovered that the match had not been completed but suspended by officials.
VAR found that Medina's goal was offside and the score returned to 2-1 in favor of Morocco. After being held in the dressing room for over an hour, players came out to play the final three minutes.
Morocco finish taking all three points.