MADISON, Wis. (AP) — Wisconsin National Guard officials said Tuesday they’re looking into whether to punish an Illinois congressman who belongs to the Wisconsin detachment for criticizing Gov. Tony Evers’ decision to withdraw troops from the U.S. southern border.

Republican Rep. Adam Kinzinger is a Wisconsin Air National Guard pilot with the rank of lieutenant colonel. He ripped Evers Monday on Twitter and on Fox News for ordering Wisconsin troops to pull out of Arizona.

Wisconsin statutes state that any commissioned officer who uses “contemptuous words against the president, the vice-president, members of congress, the secretary of defense, the secretary of a military department, the secretary of homeland security, or the governor or legislature of the state of Wisconsin shall be punished as a court-martial may direct.”

Evers is a Democrat. His position as governor automatically makes him the commander-in-chief of the Wisconsin National Guard. Asked if Kinzinger might be disciplined for his remarks, Guard spokesman Capt. Joe Travato said the Guard and Evers’ office are looking into the matter.

Kinzinger’s spokeswoman, Maura Gillespie, said in an email that Wisconsin law makes clear that such restrictions only apply to members while “on service.” She did not respond to follow-up questions from The Associated Press seeking an explanation.

She told the Milwaukee Journal Sentinel that Kinzinger was off-duty when he made the remarks and has the right to exercise his freedom of speech, just as he has done when he’s been critical of President Donald Trump and former President Barack Obama.

Former Republican Gov. Scott Walker ordered Wisconsin National Guard troops to Arizona in June to assist the U.S. Customs and Border Patrol. Evers issued an executive order late Monday afternoon recalling the 112 troops currently serving there, saying there’s no justification for their deployment.

Kinzinger reacted with a series of scathing tweets, calling protecting the border an honorable mission, ripping Evers for not visiting the border himself, asking Evers whether the decision was political and requesting he reconsider.

He echoed those thoughts during an appearance on Fox News, accusing the governor of lacking the courage to announce the withdrawal earlier in the day Monday.