The longtime commander of New Jersey's National Guard is resigning after being caught having a physical relationship with a woman who works for him, government officials told The Associated Press on Thursday.

Maj. Gen. Glenn Rieth, a prominent member of Republican Gov. Chris Christie's Cabinet and a childhood friend, will retire within weeks, according to government officials familiar with the matter.

The officials said Reith, who is married, and the aide were caught in his office last month touching each other. The officials spoke only on condition of anonymity because of the sensitive nature of the matter.

Rieth, 54, has commanded the National Guard for nearly a decade. He was appointed by Democratic Gov. James McGreevey, who had his own sex scandal involving a male Cabinet member.

According to officials, Rieth reported the incident with his aide to the governor early last month and said it was being reported to the Army. He offered his resignation less than two weeks later, one of the officials said.

The woman also is married and lives just a few miles away from the Rieth and his wife; the couples knew each other socially.

As the commander of the state National Guard, Rieth leads more than 9,000 soldiers and airmen. He also oversees the Department of Military and Veterans Affairs and all state veterans' programs, commissions and facilities in New Jersey. Rieth's wife, Linda Rieth, has long played a prominent role at National Guard functions.

Glenn Reith had a blemish-free record and was well-respected -- a reason he was kept on by four governors.

Christie was especially close to Rieth because they were raised in Livingston, just outside Newark, and their families knew each other -- something Christie made a point of noting in January 2010, when he announced that he was keeping Rieth in the position.

Before being appointed as adjutant general of New Jersey in 2002, Rieth was the director of the State Army Aviation Office for the New Jersey Army National Guard. He attended The Citadel-Military College of South Carolina and has been in the military since 1980.

(Copyright 2011 by The Associated Press.  All Rights Reserved.)