With these measures came more domestic repression, as thousands of Islamists were imprisoned, including dozens of military officers