Bayern Munich suffered a shock defeat at the hands of Bochum, squandering a two-goal lead after Joao Palhinha's first-half dismissal turned the tide of the match.