Community rallies after police officer ambush