A man suspected of robbery was shot and killed by the police in Los Angeles on Sunday during a confrontation that was captured on video in a downtown homeless encampment.

The four-minute video of the fatal encounter and its aftermath was taken by a bystander and uploaded to Facebook. The video starts with the man swinging his arms at four police officers who have him surrounded on a sidewalk lined with tents.

An officer drops his nightstick and rains punches on the man, knocking him to the ground. The officer then straddles the man, who continues to struggle as two more officers arrive.

In the video, a woman standing nearby picks up the nightstick and appears to aim it at the officers. Two officers wrestle her to the ground and place her in handcuffs.