Attorney general: Police shooting in Rapid City justified