How can someone from a developing country study pure mathematics/theoretical physics at a university abroad?
The African Institute for Mathematics (http://www.aims.ac.za/) is an institution meant to help those in your situation. Essentially, it is supposed to offer talented budding mathematicians from Africa the fundamentals to be competitive to apply to the top places all over the world.