TRENTON, N.J. (AP) — U.

S. Sen. Bob Menendez is resigning from office Aug.

20 following his conviction for taking bribes for corrupt acts including acting as an agent of the Egyptian government, a person familiar with the matter told The Associated Press on Tuesday. Menendez had insisted after the July 16 verdict that he was innocent and promised to appeal. The person who told the AP about Menendez’s resignation did so on the condition of anonymity because the New Jersey Democrat’s decision hadn’t been made public.

Menendez’s attorney hasn’t returned messages seeking comment. The resignation gives New Jersey Gov. Phil Murphy, a Democrat, the ability to appoint someone to the senate for the remainder of Menendez’s term , which expires on Jan.

3. The seat was already up for election on Nov. 5.

Democrats have nominated U.S. Rep.

Andy Kim, who’s in strong position in the Democratic-leaning state. He faces Republican Curtis Bashaw. Menendez, 70, was convicted of charges that he sold the power of his office to three New Jersey businessmen who sought a variety of favors.

Prosecutors said Menendez used his influence to meddle in three different state and federal criminal investigations to protect his associates. They said he helped one bribe-paying friend get a multimillion-dollar deal with a Qatari investment fund and another keep a contract to provide religious certification for meat bound for Egypt . He was also convicted of taking actions that benefited Egypt’s g.