Substitute Toni Kroos scored in extra-time as four-times European champions Bayern Munich came from behind to win 3-2 at Red Star Belgrade in the opening night of the UEFA Cup group stage.