An explosion and fire at a cookie factory in central Greece has killed five female night shift workers and left seven injured.