Casings hermetically closed by a diaphragm through which passes an actuating member