Combine Campari, tequila, lime juice, and agave nectar in an ice-filled cocktail shaker. Cover and shake vigorously until the outside of the shaker is very cold, about 20 seconds. Strain into a pint glass and top with beer. Garnish with lime slice.