Israel 's military says troops fired at two Palestinians seen next to a rocket launcher in an area where militants had fired rockets at Israel .