AC Milan have confirmed that striker Stephan El Shaarawy will be sidelined for up to three weeks with a foot injury.