Gauged inverse seesaw from dark matter