Bollywood star Saif Ali Khan has undergone surgery and is now "out of danger" after being stabbed at home by an intruder.