Over 47 militants dead in Afghan attacks