The US rapper had provoked criticism after shooting scenes in the country’s presidential palace.