Two security officers and two gunmen were killed in the earlier violence .