The Los Angeles police chief and the department’s constitutional policing director are under investigation after the names and photographs of undercover officers were released to a technology watchdog group that posted them online, the Los Angeles Times reported.