Three security personnel were killed and two others were injured when mortar shells from Afghanistan landed in South Waziristan tribal region.