The attacker was among 5,000 members who recently joined a new division in the internal security forces.