The incident took place hours before Afghan President Hamid Karzai , speaking to a major security conference in London , urged that greater care be taken when foreign troops come into contact with civilians .