A former Territorial Army (TA) soldier was killed after being shot by militants while his wife and niece were injured.