The man who shot dead a French policeman in an Islamist militant attack had served time for armed assaults on law enforcement officers; police sources.