NEW YORK — Authorities say a Coast Guard vessel overturned while assisting a fishing boat that ran aground in an inlet off New York City.

Five Coast Guard crew members and seven fishermen escaped without serious injury during the incident off Queens early Thursday.

A Fire Rescue vessel passes a Coast Guard vessel that has overturned on Thursday off of Queens.

A Fire Rescue vessel passes a Coast Guard vessel that has overturned on Thursday off of Queens. The Associated Press

The Coast Guard crew members, wearing protective gear, swam to shore. A helicopter with a rescue basket was used to lift fishermen to safety.

Coast Guard spokeswoman Ali Flockerzi says an overnight storm may have been a factor. She says the 25-foot Coast Guard boat was hit by 10 to 12 foot waves.

Fishing boat, the Carolina Queen III, rests in shallow water just off Rockaway Beach.

Fishing boat, the Carolina Queen III, rests in shallow water just off Rockaway Beach. The Associated Press

The Coast Guard got a distress call at 2 a.m. from the 76-foot fishing boat, the Carolina Queen III. The fishing boat initially was taking on water. Its crew got that under control, then ran aground. The boat came to rest in shallow water just off the beach in the Rockaway section of Queens