Villarreal inflicted Bayern Munich’s first away defeat in the Champions League for almost five years as they won their quarterfinal first leg 1-0.