The quakes occurred within about five hours and shook cities in Venezuela and Colombia. There were no immediate reports of casualties.