Obscured accreting black holes at high redshift