An off-duty officer with the Oakland (CA) Police Department was stabbed in the neck on Thursday just after finishing shift.

According to KTVU-TV, the officer—whose name and gender has not been released—was walking to their car from the department headquarters when the attack occurred.

The suspect was almost immediately arrested by nearby officers who witnessed the assault and responded.