One of the assailants and three security personnel were among those killed in the exchange of fire.