Five injured in firing at court premises