A photo has emerged of former President Barack Obama in which he is posing with a leader of the Nation of Islam group, sparking controversy.