WASHINGTON (Reuters) - U.S. Representative Katie Hill, who is under investigation by the House ethics committee over an alleged relationship with a congressional staffer, said on Sunday that she was resigning from Congress.

Hill, a 32-year-old California Democrat who was elected to the House of Representatives in November 2018, posted her resignation letter to Twitter, saying she believed it best for her constituents, community and the country.

Hill has admitted to an “inappropriate” relationship with a campaign staffer when she was running for Congress but denied she had a sexual relationship with a staffer in her office, according to media reports.

The ethics committee said on Wednesday it was “aware of public allegations... (that Hill) may have engaged in a sexual relationship with an individual on her congressional staff,” and said it was investigating.

Hill, who is going through a divorce, apologized in her resignation letter for “mistakes made along the way” but also lamented a “smear campaign”.

Hill blamed her husband and said she was pursuing legal options after media outlets published intimate photos that purported to be of the lawmaker.

“Having private photos of personal moments weaponized against me has been an appalling invasion of my privacy,” said Hill. “It’s also illegal.”

Hill serves on the House Armed Services and Oversight and Reform Committees, where she is also vice chair.

She defeated incumbent Republican Steve Knight in a district north of Los Angeles, helping the Democrats win control of the House. Her district is seen by election analysts at the Cook Political Report as one of the most competitive in the country.

Although Hill’s departure could help Republicans win back her seat in November 2020, they still face an uphill climb in their effort to regain control of the House.