The accused allegedly opened fire on the police while trying to run away when he was caught during a check in Lucknow.