In the ensuing gun battle two Palestinian militants were killed and 17 people were wounded .