Agreement comes after South Korean president visits Cairo for first time in 16 years; Egypt is a major arms importer that has upgraded its military in recent years