Royal Caribbean said Wednesday that a fire broke out in a mechanical space on one of its cruise ships—Freedom of the Seas—as it was pulling into Falmouth, Jamaica.

The company said in a statement that the fire was extinguished, but "in an abundance of caution," the captain assembled all guests at the ship's assembly stations. All systems are functioning on the ship, which is alongside Falmouth, the statement said.

The ship is on a seven-night sail that started in Cape Canaveral, Fla., on July 19.

Jayne Giesler, a passenger, told FoxNews.com that an announcement was made on the ship at about 9:30 a.m. about the issue.

"At that point, I noticed dark smoke and debris outside the window," she said in a phone interview. "That's when the crew told us to get our life-preservers."

She credited the crew and the captain for keeping the passengers calm and informed. She said she was told that one of the engines in deck 0 caught fire.

The crew is currently working on returning passengers to the stateroom after completing a head count.

Fox News' Edmund DeMarche contributed to this report