Kennedy said it correctly. He was not actually from Berlin, therefore the EIN was needed. Similarly, the Germans would say: George Bush ist ein Cowboy. Not to say Bush was actually a cowboy but rather that he acted as if he were one. The EIN was needed to make the sentence correct.