Five people have been killed and 15 injured after a gunman opened fire in a nightclub in Playa Del Carmen, near Cancun, Mexico, during a music festival.

Shots were fired at the Blue Parrot club in Playa Del Carmen, an area popular with foreign tourists, at about 2.30am on the closing night of the 10-day BPM music festival.

Organisers said in a statement that at least four people were killed. Authorities later confirmed that five people were dead. One of the victims, a woman, was killed during the stampede from the club.

The dead included two Canadians, an Italian and a Colombian.