The latest exchange of fire, sparked by an Iranian attack on a container ship, had already cast further doubt on the interim peace deal reached last month.