The attack on a policeman and his partner by a man claiming allegiance to so-called Islamic State is a "terrorist act", France's interior minister says.