The US President has been mocked after referring twice to Nambia in a speech to African leaders at the UN.