Hungary has criticised Ukrainian President Volodymyr Zelensky for accusing Budapest of not adhering to NATO obligations.