An ambush by militants in the Russian republic of Chechnya has left five police officers dead and six others injured.