Collectively enhanced resonant photoionization in a multiatom ensemble