2 police officers killed in 'ambush' attacks