I don't think you'll have much trouble from the taliban...but if you want to go and study i think Karachi is probably safer for you than tribal areas, besides foreigners find it quite difficult to adjust in tribal areas due to their lifestyle in the west...also you will not find many people who can speak/understand English in those areas whereas in cities like Karachi most people understand English to some extent....studying in a tribal area or places such as masrassah haqqania will put you on a radar