Prosecutor says police shooting was justified