Three Qatari soldiers fighting alongside the Saudi army have been killed in retaliatory attacks by Yemeni forces.