Electromagnetic Wave Emission from a Dynamical Current Sheet with Pinching and the Coalescence of Magnetic Islands in Solar Flare Plasmas