HONG KONG — It wasn’t the big one by a long shot, but if you were visiting Indonesia for the first time, it might have felt that way.

A strong undersea earthquake shook the resort island of Bali on Tuesday, injuring one person and forcing tourists to leave their hotels as a precaution.

The magnitude 6.1 quake followed days of seismic activity in the region, including a powerful magnitude 7.2 earthquake on Sunday that killed at least two people, displaced 2,000 people and damaged scores of homes in a sparsely populated area of eastern Indonesia.

One person was injured by Tuesday’s quake, and 38 buildings on Bali and the nearby island of Java were damaged, the country’s national disaster agency said on Twitter. No deaths were reported, and the agency said the quake, like the one on Sunday, had not a posed a tsunami risk.