Two police officers were legally justified in shooting an armed man, the district attorney announced Friday. An autopsy determined the man died from a self-inflicted gunshot.