Three members of the American Fork SWAT team who tracked down a wanted man were legally justified when they shot and injured him after he pulled out a gun on the porch of a random residence, the Salt Lake County District Attorney’s Office announced Friday.