Actress and producer Bolaji Ogunmola has apologised for her role in a film that sparked outrage over tribal slurs.