Shots were fired inside the premises of the Mount Lavinia Magistrate Court Premises, Police said.
An unidentified gunman had opened fire at an individual who was a witness to an ongoing case, revealed Police Spokesman Nihal Thalduwa.
However, no injuries were reported.
The gunman had fled the scene after the fire, the Police Spokesman added.
MIAP