Fastening elements for attaching accessories to the outside of an endoscope shaft