Eight people were killed on Wednesday in two shooting incidents in the western German city of Hanau, police said.