Three people were killed and three seriously injured in an explosion in a factory in Ibi, a town in southeastern Spain, on Wednesday.