The blast, near the civil court, struck inside a compound also housing police offices.