Three officers killed, two in critical but stable condition, in one of the deadliest recent attacks on the US police.