Direct Lyman continuum and Lyman-alpha escape observed at redshift 4