By second iotation from earlier dijak, from Greek διάκος (diákos). Compare đakon.
ђа̑к m (Latin spelling đȃk)