Suppression of star formation in dwarf galaxies by photoelectric grain heating feedback