Three soldiers on patrol outside a Jewish community centre on the French Riviera were attacked on Tuesday by a man who was only last week expelled from Turkey, a security source said.