Israeli police say they killed two assailants that had carried out a deadly shooting in the central city of Hadera.