At least four miscreants were killed and one STF inspector was injured after an encounter broke out between Uttar Pradeshs Special Task Force (STF) and miscreants in the wee hours of Tuesday, said police.