The famed actor took to social media to apologize and come out as a gay man.