Bayern have sacked their goalkeeping coach after it emerged he was leaking chats among staff back to players.