A syllable imitative of a snapping sound; hence as vb.

1

1861.  Meredith, Evan Harrington, xli. Tom … with a sound translated by ‘yack,’ sent his leg out a long way.

2

1873.  W. Cory, Lett. & Jrnls. (1897), 318. He opens his beak, and yacks like the young jackdaw.

3