Country’s president announces major security overhaul after authorities confirm they were warned about attacks