UP: Four killed, 31 injured in road accident