Pakistan military says 23 militants killed in air strikes