Home-grown militants, ex-major behind Bangladesh attacks, police say