Twelve people were injured in an accident involving hazardous goods at a company in Sternenfels, western Germany, on Tuesday, police said.