Seventeen people were killed in an overnight shootout at an outpost on the Tajik-Uzbek border that was attacked by armed men wearing masks, Tajik authorities said on Wednesday.