The man told police one of the men was armed with a gun. The resident said he then shot one of them while the other fled on foot.