Which sentence correctly uses a semicolon?

1.
I like dogs, however, they can be pests.
2. t; like dogs, however, they can be pests.
3. However; I like dogs but they can be pests.
4. I like dogs; however, they can be pests.