Homes flood after quarry incident