The Obama Foundation called the incident a “shameless act of cowardice and hate”.