 On 10 February 2008, Uttar Pradesh police arrested Ansari along with five others.These included Pakistani nationals Romez alias "Amar Singh" and Sehwez alias "Ajay Malhotra" and Indian nationals Sohel, Sawauddin (or Sabauddin) Sanju and Baba Jung Bahadur.He was arrested for his involvement with an attack on a Central Reserve Police Force camp in Rampur on 31 December 2007, in which 7 paramilitary personnel and 1 civilian were killed.