TOYOTA, Japan — An earthquake in central Japan early Sunday injured at least 22 people, according to Japanese media. Shaking broke windows and knocked books from shelves in Aichi Prefecture, and some people were injured as they tried to get out of buildings.

Japan’s Meteorological Agency measured the quake at magnitude 5.7. The U.S. Geological Survey reported magnitude 5.5. Smaller aftershocks followed.

Shaking was felt well beyond the area of the epicenter, including in Kyoto, Nara and Hamamatsu. In Aichi, damage was visible in Toyota and Toyohashi, where windows broke at a car dealership.

The injury count was preliminary. The earthquake struck in the early hours of Sunday local time.