The actor and director went on to apologise on Twitter.