We report on the linear relationship between the durations of two types of electromagnetic emissions associated with shocks driven by coronal mass ejections: sustained gamma-ray emission (SGRE) and interplanetary type II radio bursts. The relationship implies that shocks accelerate approximately 10 kiloelectronvolts electrons (for type II bursts) and more than 300 megaelectronvolts protons (for SGRE) roughly over the same duration. The SGRE events are from the Large Area Telescope (LAT) on board the Fermi satellite, while the type II bursts are from the Radio and Plasma Wave Experiment (WAVES) on board the Wind spacecraft. Here we consider five SGRE events that were not included in a previous study of events with longer duration (more than 5 hours). The five events are selected by relaxing the minimum duration to 3 hours. We found that some SGRE events had a tail that seems to last until the end of the associated type II burst. We pay special attention to the 2011 June 2 SGRE event that did not have a large solar energetic particle event at Earth or at the STEREO spacecraft that was well connected to the eruption. We suggest that the preceding CME (Coronal Mass Ejection) acted as a magnetic barrier that mirrored protons back to Sun.