Authorities say the homemade bomb was in a bag on a bicycle , and exploded as vendors were preparing their stalls for the day .