Borrowed from Pashto استاد or Urdu استاد, from Persian استاد. Spelling influenced by archaic Persian استاذ.
اُستاذ (ustāz)