Israel says troops fired on masked gunmen in Gaza, but it remains committed to the ceasefire as it continues a new offensive in the West Bank.