Rep. Joe Barton (R-Tex.) at a House Energy Committee hearing in October. (Drew Angerer/Getty Images)

Rep. Joe Barton apologized Wednesday after an explicit photo of him was posted to an anonymous Twitter account and began to circulate online.

In a story first reported by the Texas Tribune, Barton (R-Tex.), the vice chairman of the House Energy Committee, said he had sexual relationships with “other mature adult women” while separated from his second wife before their 2015 divorce.

“Each was consensual,” he said of the relationships in a statement. “Those relationships have ended. I am sorry I did not use better judgment during those days. I am sorry that I let my constituents down.”

The photo circulating of Barton shows him in a compromising position. Though parts of the photo are covered, he appears to be naked.

The statement did not explain the origins of the photo or who posted it, which remained unclear Wednesday.

The apology comes amid a wave of sexual harassment allegations on Capitol Hill, in media and in entertainment.

Read more: 

How Congress plays by different rules on sexual harassment and misconduct

Former congressional staffers call for policy changes to address sexual harassment

House Ethics Committee launches Conyers probe after harassment allegations