The exchange of attacks followed an escalation in the past week that threatens to deepen a conflict since its outset in February.