Prosecutor rules homeowner was justified in shooting man