A fire broke out in a prison cell at the Corradino Correctional Facility, the Department of Information said.
Prison warders intervened to put out the blaze before it could spread.
Two warders needed medical assistance after the blaze.
The police have been informed and an investigation has been launched, along with a magisterial inquiry.
The statement did not say whether the fire was an arson attempt or an accident.