At least three people were killed -- a 9-year-old girl and two men in their 80s -- and more than 300 other people were hurt after a strong earthquake rattled the city of Osaka in western Japan on Monday morning, officials said.

The Fire and Disaster Management Agency said 307 people were treated for injuries at hospitals. Most of the injured were in Osaka — Japan's No. 2 city bustling with businesses. Osaka officials did not give details, but the injuries reported in Kyoto and three other neighboring prefectures were all minor.

The magnitude 6.1 earthquake struck shortly after 8 a.m. north of Osaka at a depth of about 13 kilometers (8 miles), the Japan Meteorological Agency said. The strongest shaking was north of Osaka, but the quake rattled large parts of western Japan, including Kyoto, the agency said.

The temblor reminded many of the magnitude 7.3 Hanshin-Kobe quake in 1995 that killed more than 6,000 people in the region. Monday's quake also followed a series of smaller quakes near Tokyo in recent weeks.

"It was not as bad as the Kobe quake," said Jun Kawanami, a 30-year-old lawyer in Osaka. He said his wife ducked under a table and elevators in his office building were out of operation. "I used the stairs but I was out of breath by the time I arrived at my office on the 22nd floor," he said.

The 9-year-old girl, Rina Miyake, was found at a school, local media reported. A falling concrete wall knocked down and killed her as she walked at her elementary school in Takatsuki.

NHK public television aired video showing the collapsed upper half of the high wall, which was painted cheerfully with trees, flowers and blue sky and surrounded the school swimming pool.

Takatsuki Mayor Takeshi Hamada apologized over her death because of the wall's collapse. The structure was old and made of concrete blocks — a known risk in earthquakes.

Chief Cabinet Secretary Yoshihide Suga ordered the Education Ministry to conduct nationwide safety checks of concrete block structures at public schools.

More than 1,000 schools were closed in Osaka and nearby prefectures, Kyodo News reported. Wall cracks and other minor damage were found at several schools.

Dozens of domestic flights in and out of Osaka were grounded, while train and subway service in the Osaka area including the bullet train were suspended to check for damage. Passengers exited trains on the tracks between stations.

Some subway service resumed in the afternoon, but train stations remained crowded with passengers waiting for trains to restart, many of them sitting on the floor. Long lines of people waited to board bullet trains as they resumed operation.

The quake knocked over walls, broke windows and set off scattered building fires. It toppled bookcases in homes and scattered goods on shop floors. It also cracked roads and broke water pipes, leaving homes without water.

Due to damage to underground gas lines, 110,000 homes in Takatsuki and Ibaraki cities were without gas, and repairs are expected to take as long as two weeks, according to Osaka Gas Co.

More building damage was found in the afternoon as disaster and relief workers inspected and cleaned up the affected areas. Roofs and roof tiles at homes and at least one temple fell to the ground in Osaka. At a shrine in Kyoto, stone lanterns broke and collapsed to the ground.

Defense troops joined rescue and relief operations in parts of Osaka, along with special vehicles to deliver clean drinking water.

About 850 people took shelter at community centers, school gymnasiums and other public facilities in Osaka.

The Associated Press contributed to this report.