The strongest hurricane to hit Puerto Rico in more than 80 years destroyed hundreds of homes, knocked out power across the entire island and turned streets into raging rivers. Picture: AP Photo/Carlos Giusti

San Juan - Deadly Hurricane Maria flooded parts of the Dominican Republic as it grazed past on Thursday and dumped more heavy rain on the U.S. territory of Puerto Rico after destroying buildings and knocking out power to the entire island.

The second major hurricane to rage through the Caribbean this month, Maria has killed at least 17 people and devastated several small islands, including St. Croix in the U.S. Virgin Islands and Dominica.

Maria was carrying sustained winds of up to 120 miles per hour (195 km per hour) as it moved northwest away from the Dominican Republic on a track that would take it near the Turks and Caicos Islands and the southeastern Bahamas on Thursday night and Friday, the U.S. National Hurricane Center said in a 2 p.m. ET (1800 GMT) advisory.

The hurricane had been ranked a Category 4 storm, near the top of the five-step Saffir-Simpson scale, with winds of up to 155 mph (250 km/h), when it plowed into Puerto Rico on Wednesday as the strongest storm to hit the island in nearly 90 years.

Officials in Puerto Rico, home to 3.4 million people, were still assessing the extent of the damage. U.S. President Donald Trump told reporters the storm "totally obliterated" the island.

Puerto Rico Governor Ricardo Rossello said there was one death reported so far, a man struck by a piece of lumber hurled by high winds.

"It's nothing short of a major disaster," he said in a CNN interview, adding it might take months for the island's electricity to be completely restored. He imposed a dusk-to-dawn curfew that runs through Saturday.

The storm hit at a time of financial troubles in Puerto Rico, which is facing the largest municipal debt crisis in U.S. history. 

The team of judges overseeing the Puerto Rican government's bankruptcy has advised involved parties to put legal proceedings on hold indefinitely as the island recovers from the damage, a source familiar with the legal proceedings said on Thursday.

In the historic heart of the island's capital San Juan, which has a fort and buildings from the Spanish colonial era, the storm left a litter of debris.

Aiden Short, 28, a debris management worker from London, said he had headed to the British Virgin Islands to help clean up the devastation of Hurricane Irma when Maria trapped him in San Juan.

"I was supposed to have come as a professional, but now I've just had to weather the storm," Short said. "But now it looks like I might be useful here."

All of Puerto Rico was under a flash flood warning early on Thursday as the tail end of the storm could bring another 4 to 8 inches (10-20 cm) of rain on Thursday, bringing the storm's total to 35 inches (89 cm) in parts of the island, the NHC said.

The government did not yet have an estimate of how many homes and businesses were destroyed by the storm. But authorities expected to see more people go to shelters on Thursday as they realized how badly their homes were hit, said Pedro Cerame, a spokesperson for Rossello.

Thousands went to government shelters before and during the storm.

Maria passed close by the U.S. Virgin Island of St. Croix early on Wednesday as a rare and powerful Category 5 storm, knocking out electricity and most mobile phone service across the island, said Keva Muller, a spokesperson for the emergency operations command on St. Thomas. Most radio stations were down and many roads were blocked.

Governor Kenneth Mapp was due to inspect damage by helicopter on Thursday. Just two weeks ago, Hurricane Irma pounded the territory's northern islands, St. Thomas and St. John.

As many as 70 percent of buildings on St. Croix, which has a population of about 55 000 people, were damaged, said Holland Redfield, who served six terms in the U.S. Virgin Islands senate.

In the Dominican Republic, winds knocked out power to almost all northern areas, Emergency Operations Center coordinator Ernesto Pérez told reporters.

Strong winds and rains were lashing the northern shore.

"The tin roofs of some houses were ripped away," said Juan Carlos Castro Hernandez, assistant district attorney for Puerto Plata, in the northeast of the country.

By Thursday afternoon, Maria was about 135 miles (215 km) southeast of Grand Turk island, the NHC said, and it could strengthen somewhat over the coming day or so, the center said.

It currently looked unlikely to hit the continental United States.

Maria was a rare Category 5 storm when it struck Dominica on Monday night, damaging about 95 percent of the roofs on the island, the U.N. Office for the Coordination of Humanitarian Affairs said. At least 14 people died, CNN quoted Charles Jong, a spokesman for Dominica prime minister's office, as saying.

Two people were killed in the French territory of Guadeloupe.

The U.S. and British Virgin Islands were also hit this month by Irma, which ranked as one of the most powerful Atlantic storms on record. It left a trail of destruction in several Caribbean islands and Florida, killing at least 84 people.