Bombs accidentally dropped by a South Korean air force jet have injured eight people and damaged houses in a town near its border with the North.