Israeli troops have killed two Palestinian gunmen who attacked a border crossing between the Gaza Strip and Israel .