Sub inspector attacked