The attacker, who is still on the run, also shot another footballer in the chest.
He was rushed to hospital but is said to be out of danger.
Police said the man had a gun in his backpack and ran on to the pitch as the game was continuing.
He shot the referee three times, hitting him in the head, chest and neck.
The horrific incident happened in the Córdoba district of Argentina on Monday.