Turkish officials say 12 people have been killed in a blast at an explosives factory in the country's northwest.