The officers who had been engaging in the gunfire with the suspects saw the off-duty cop with a gun and ordered him to get on the ground. The officer did so, and when his colleagues recognized him, he was instructed to get up and move towards them.
When he did so, another officer shot him.
Enjoy your Police State.
Source: The Sacramento Bee