A small Indian town managed to become a major export hub but now the system is failing it. Here’s how.