Police say 13 inmates and one prison guard have been killed and another 14 people injured in clashes between rival gangs in a jail in Ecuador.

People living near the prison in the southwestern city of Machala reported hearing explosions and shots in the early hours of Monday local time.

Police chief William Calle said an unknown number of prisoners had escaped during the incident but 13 have so far been recaptured.

Deadly prison clashes and riots are not uncommon in Ecuador, with gangs often targeting members of rival groups.

Police blamed members of a criminal gang calling itself Los Lobos Box for Monday's violence. The gang has not commented on the incident.