Inmates rioted and set a fire at a prison in western France after one grabbed a set of keys and unlocked cells, a spokeswoman for the facility said Monday.