Police have said a gunman opened fire in Haifa, just weeks after a stabbing attack in the same city left one dead.