A shootout involving rival gangs on a beach near the Mexican resort of Cancún has left two suspected drug dealers dead, prosecutors say.

The shooting happened on a beach in Bahia Petempich, Puerto Morelos, the Quintana Roo state attorney general's office tweeted.

"Two of them lost their lives," it said.

People posted on Twitter that guests were told by staff to hide inside a hotel because of an active shooter.

There were chaotic scenes as guests took cover in the Hyatt Ziva Riviera Cancun Resort.

"Guests are telling me they were playing volleyball on the beach, gunman approached firing gun. Everyone ran from beach and swimming pools. Staff hustled us into hidden rooms behind the kitchens," tweeted former NBC executive Mike Sington, who is staying at the resort.

All guests and employees told to duck, and we’re all taken to hiding places at Hyatt Ziva Riviera Cancun Resort. Active shooter? Terrorist or kidnapping threat? They’re not telling us anything. pic.twitter.com/Hf7SRzRJIZ

— Mike Sington (@MikeSington) November 4, 2021
The BBC is not responsible for the content of external sites.View original tweet on Twitter

There have been no reports of any other serious injuries.