The strain of a highly pathogenic bird flu detected on a New Zealand farm this month has been contained, authorities say.