Cat keeps popping out of cardboard box to attack dog