A 19-year-old who brandished a knife at a Darwin security guard, slashing at his head and neck, has pleaded guilty to intending serious harm in the Supreme Court.