Pakistani security forces have ended a standoff with militants inside a police compound in northwestern Pakistan