TEL AVIV—Israel closed its only pedestrian crossing with the Gaza Strip on Sunday in response to violent protests at the border fence, a move that comes amid a fragile truce and talks for a long-term cease-fire.

A spokeswoman for the Israeli Defense Ministry branch that operates the border crossings with Gaza said the Erez Crossing was closed in response to “violent protests” that took place Friday. Exceptions will be made for humanitarian cases