An outbreak of deadly violence impacted tourist destinations in Mexico and prompted urgent warnings from the US and other governments.