Military says it fired back 'to remove the threat'; incident comes as Israel and Palestinian terror groups in the Strip negotiate ceasefire