Kik Pierie flicked home a dramatic equaliser for Heerenveen in injury time in their Eredivisie match at Ajax.