At least eight prisoners were killed and 37 others injured when a riot broke out on Sunday at a prison on the outskirts of Sri Lanka's capital when some inmates tried to force open a door and escape, prompting the authorities to use force, police said on Monday.