State Rep. Virgil Peck of Tyro distributed a statement on the House floor Tuesday in which he said his statements were unfortunate, The Kansas City (Mo.) Star reported.
"My statements were regrettable. Please accept my apology," Peck said in the signed one-page statement.
Peck made the comment Monday during a committee meeting on how to deal with controlling the wild hog population.
"If shooting these immigrating feral hogs works, maybe we have found a (solution) to our illegal immigration problem," Peck said, explaining later he was joking but that his constituents are upset with illegal immigration.
Kansas Gov. Sam Brownback, a Republican, rebuked Peck Tuesday, saying the representative should apologize.
Brownback said he understands the public's frustration about illegal immigration, but Peck's remarks were out of bounds, the Star said.
"This isn't the way to handle it or deal with it. I think it's completely inappropriate," Brownback said during a news conference. "This is no way to discuss the issue."