Sealing valve for flexible and rigid endoscope