Beam type photoelectric sensor