Officials say the confrontation began when militants fired three mortars at the settlement near the Khan Younis refugee camp .