Home Secretary Jacqui Smith has attacked London Mayor Boris Johnson for ousting the UK's top police officer.