Gabriel Murta was kicked and slapped by players from lower-league Amantes de Bola, while the manager invaded the pitch demanding a red card, it is claimed.
Murta, said to be a policeman by day, reacted by racing to the changing rooms and returning with a firearm.
Shocking footage captured by a spectator showed his linesman restraining Murta as he held the gun in his hand on the pitch.
