A U.S. airstrike caused several casualties in Kabul as Defense Secretary Jim Mattis was visiting the Afghan city.