Energetic Particles Associated with a Coronal Mass Ejection Shock Interacting with a Convected Magnetic Structure