The death struggle of the monster lasted three days and three nights ; in his writhing he beat his tail so violently against the ground , that at ten miles ' distance the earth trembled as if with an earthquake .