At least 34 Palestinians have been shot dead near food distribution centres in Gaza, according to the health ministry.