Excitation of magnetohydrodynamic waves by plasmoids ejection in the solar corona