Sub-inspector shot dead