A former South Carolina police officer has filed a federal lawsuit against his former employer, claiming he was unjustifiably fired over a photo of himself posing in Confederate flag underwear during last summer's swirling debate over the flag and other Confederate symbols.