Qaeda Yemen attacks kill 40 police, troops: army