Device for intraocular release of a medicament