The man ignored the officer’s repeated commands to put down his weapon