The market, in a camp for displaced people, was attacked for roughly two hours, a local official says.