Niger's security was under control of foreign forces until 2023 coup: Defense chief