Actor Jonah Hill on Tuesday apologized for using a gay slur.

The 30-year-old Hill supposedly yelled “Suck my dick, you faggot” to a photographer following him over the weekend.

Appearing on The Howard Stern Show, Hill explained that he “lost his cool” after the photographer had badgered him all day.

“This person had been following me around – just to give it some context, not excusing what I said in any way – this person had been following me around all day, had been saying hurtful things about my family, really hurtful things about me personally, and I played into exactly what he wanted and lost my cool,” Hill said.

“In that moment I said a disgusting word that does not at all reflect how I feel about any group of people. I grew up with gay family members. I'm leaving here to go spend the day with one of my closest co-workers and best friend who is gay, who is getting married, who I'm going to stand [by] at his wedding.”

“I'm not at all defending my choice of words but I am happy to be the poster boy for thinking about what you say and how those words … they are rooted in hate.”

“Now what I said in that moment was disgusting and a hurtful term. I should have either said nothing or just 'fuck you,'” he added.

Last year, Hill tweeted a picture of himself wearing an HRC shirt in support of LGBT Russians. The shirt read “Love Conquers Hate” in Russian.