At least 54 policemen, including 20 officers and 34 conscripts, were killed when a raid on a militant hideout southwest of Cairo escalated into an all-out firefight, authorities said Saturday, in one of the single deadliest attacks by militants against Egyptian security forces in recent years.