Civilian casualties in Afghanistan reached record levels in the first half of 2021, the United Nations warned Monday, noting that deaths and injuries spiked markedly from May when the United States and its allies began withdrawing troops from the country.