and , though it had taken him some time to bring himself to it , after the boy-soldier had been killed in an ambush , the priest had lit a candle for him in the church and had offered a prayer for his immortal soul .