Borrowed from Ottoman Turkish خندق (hendek), from Arabic خَنْدَق (ḵandaq).
jèndek m (Cyrillic spelling јѐндек)