State investigation launched after knife-wielding man shot by officers