Brewers beat Cubs 4-3 in 10 innings