Bayern Munich have confirmed Germany striker Miroslav Klose will leave the club at the end of the month after talks over a new deal broke down.