Rep. Katie Hill, D-Calif., has confirmed that she had an inappropriate relationship with a female campaign staffer.

But she denied on Wednesday having a relationship with legislative director Graham Kelly, a member of her congressional office staff.

The House Committee on Ethics said earlier Wednesday it has opened a probe into whether Hill engaged in an inappropriate relationship. It is against congressional rules to have a relationship with a subordinate congressional staff member.

The saga began after RedState, a conservative website, over the weekend published a series of articles and photos reporting that the lawmaker had been involved in a relationship with a female campaign staffer whose name was not released. Among the content published by RedState was a nude photo of Hill.

"Intimate photos of me and another individual were published by Republican operatives on the internet without my consent," the lawmaker told The Hill on Tuesday, referring to the materials as a "smear campaign."

On Wednesday, she admitted the relationship with the female campaign staffer, saying in a letter to constituents that she got involved with her "during the final tumultuous years of my abusive marriage," the Los Angeles Times reported.

"I know that even a consensual relationship with a subordinate is inappropriate, but I still allowed it to happen despite my better judgment," the letter read.

Her husband, Kenneth Heslep, filed for divorce in July.

CNBC could not immediately locate Heslep for comment.

But she denies the relationship with Kelly, which was also alluded to in the Red State article.

Hill, a freshman Democrat, won the race for Southern California's 25th Congressional District against two-term Rep. Steve Knight during the 2018 midterm elections. Her victory was among those that propelled Democrats to a House majority.