The teachers walked out in protest over their salaries, which they say are among the lowest in the country.