Apparently a primary verb; to creak (squeak), i.e. (by analogy) to grate the teeth (in frenzy) -- gnash.
Thayer's Greek Lexicon
Strong's 5149: τρίζω
τρίζω; to squeak, make a shrill cry (Homer, Herodotus, Aristotle, Plutarch, Lucian, others): transitive, τούςδωντας, to grind or gnash the teeth,Mark 9:18; κατάτίνος, Ev. Nicod. c. 5.
Mark 9:18 - V-PIA-3S GRK:ἀφρίζει καὶ τρίζει τοὺς ὀδόντας NAS: him [to the ground] and he foams [at the mouth], and grinds his teeth KJV: and gnasheth with his INT: he foams and gnashes his teeth