He used the article (ein); if he had said "Ich bin Berliner," it would have been correct. However, everybody knew perfectly well what he meant, and Germans (particularly Berliners) loved it, error and all.
Some say he did it on purpose, just to get a laugh.
. . . that sounds like a CYA to me, though!
(and I've made enough mistakes in German to know!)