Tempers flared as Mainz beat Augsburg 3-2 in a league match reduced to 10-men each in the Bundesliga.