The House Ethics Committee voted Tuesday to uphold a $5,000 fine issued to Rep. Louie Gohmert of Texas for allegedly bypassing metal detectors outside the House chamber last month in violation of security protocols.

Gohmert was one of the first House lawmakers to be fined since Congress approved rules requiring them to pass through magnetometers installed following the Jan. 6 riot at the Capitol. The Texas congressman formally appealed the fine on Feb. 26.

The committee voted 5-5 along party lines on Gohmert's appeal. Since the vote failed to yield a majority, the original ruling was upheld.

Gohmert criticized the committee's ruling, arguing that House Speaker Nancy Pelosi had committed a rules violation the same day.

"Multiple witnesses watched Speaker Pelosi avoid metal detectors and avoid being wanded when she entered the House Floor that same day that I DID go through the metal detector to enter the House floor but was not wanded coming out of the restroom," Gohmert said in a statement. "If this is not corrected in a courtroom, then House members of both parties will be subject to the tyranny of a partisan, zealot Speaker for the rest of Congress’ existence." 

GOP REP. GOHMERT RIPS HOUSE DEMS OVER $5K METAL DETECTOR FINE

Under House rules, lawmakers are fined $5,000 for a first offense and $10,000 for a second offense. Fines cannot be paid with campaign or office budget funds.

Congress adopted a number of safety measures after lawmakers were forced to flee from chambers when rioters breached the Capitol. The changes drew some pushback from GOP lawmakers who argued they were adopted by Democratic leadership without adequate notice or consultation with Republicans.

CLICK HERE TO GET THE FOX NEWS APP

Gohmert ripped House Democrats last month over his metal detector fine, arguing that he had complied with the "unconstitutional" policy for weeks. He said that he had already passed through metal detectors earlier in the day and had only left the floor to use the restroom.

"Unlike in the movie 'The Godfather,' there are no toilets with tanks where one could hide a gun, so my reentry onto the House floor should have been a non-issue," Gohmert said at the time.

This story has been updated.