Gunfire broke out on a beach in Mexico’s Caribbean coast resort of Cancun, but authorities said nobody was apparently injured.