I heard a toilet flush and scurried into an empty stall.

—“I'm Not Thirteen Yet,”
Lensey Namioka

In this sentence, flush is used as which part of speech?

Which is the best meaning of flush in this sentence?