This can be attained at the beginning of the second level: "Escape from Bricksburg".
When the level loads up go to the bottom of the room and go into the circle in front of the chair and press (B).
Bad Cop unlocks upon completing Level 12: "Broadcast News".
*Note: This was done in Free Play mode, it can't be done in Story mode.