Officials say five people have been killed in Cairo after attackers stormed an anti-military protest near its defence ministry headquarters.