Authorities say the inmates fled after a tidal wave caused by the quake destroyed their prison , a 16th century Dutch-built fort in a southern coastal town Matara .