Deconfined criticality at the onset of antiferromagnetism in a metal