Mohammad Hayat says the bomb exploded as the general was being moved late Wednesday night from the military hospital in Rawalpindi where he has been staying to his home in Islamabad.
Hayat said Musharraf's convoy had just crossed a bridge entering the capital when the bomb went off.
Musharraf's spokeswoman, Aasia Ishaq, says he was fine and reached his home safely.