What a nuisance.

Literal

Troublesome thing [copula-だ].

A bare exclamation using the na-adjective 厄介 predicated on the generic noun 事 — literally 'it's a troublesome thing,' functionally 'what a pain.' This frame [na-adj] + 事だ is a recognized way to express affective exclamation in Japanese.