Liberian soldiers on Wednesday fired into a crowd of young men who were trying to escape a quarantine that cordoned off an Ebola-stricken neighborhood in the capital.

The clash marks the most worrisome sign to date that a public-health crisis is fast becoming a security crisis in Liberia, a nation where nerves are still raw from a 14-year-long civil war.

Residents...