A porous-media model for reactive fluid-rock interaction in a dehydrating rock