At least 18 people were killed and 22 others injured as a car bomb exploded in an Afghan city south of Kabul on Thursday, just hours ahead of the Eid ceasefire.