Amlin Aguri's Antonio da Costa claimed his and the team's first Formula E victory during a dramatic race around the Argentine capital Buenos Aires.