Niger police have arrested a former prime minister , who is an ally of ousted president Mamadou Tandja .